public class MyClass
{
public void MyMethod()
{
// 执行一些操作
}
public int MyProperty { get; set; }
}
public interface IMyInterface
{
void MyMethod();
}
public struct MyStruct
{
public int MyProperty;
}
namespace MyNamespace
{
public class MyClass
{
// 类的定义
}
}
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("MyOtherAssembly")]
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:C#中public关键字的命名规范有哪些