Skip to content

Instantly share code, notes, and snippets.

@baobao
Created February 5, 2017 14:18
Show Gist options
  • Save baobao/7738bb33b51039acfaeb344cbd483055 to your computer and use it in GitHub Desktop.
Save baobao/7738bb33b51039acfaeb344cbd483055 to your computer and use it in GitHub Desktop.
public class SampleClass : SuperSample
{
static public int StatciPublicField = 1;
static private int StaticPrivateField = 2;
static internal int StaticInternalField = 3;
static protected int StaticProtectedField = 3;
static public int StatciPublicProp {get;set;}
static private int StaticPrivateProp {get;set;}
static internal int StaticInternalProp {get;set;}
static protected int StaticProtectedProp {get;set;}
public const int ConstPublicField = 4;
private const int ConstPrivateField = 5;
internal const int ConstInternalField = 6;
protected const int ConstProtectedField = 6;
public int MemberPublicField = 7;
internal int MemberInternalField = 7;
private int MemberPrivateField = 7;
protected int MemberProtectedField = 7;
readonly public int roMemberPublicField = 7;
readonly internal int roMemberInternalField = 7;
readonly private int roMemberPrivateField = 7;
readonly protected int roMemberProtectedField = 7;
public int MemberPublicProp { get; set;}
internal int MemberInternalProp { get; set;}
private int MemberPrivateProp { get; set;}
protected int MemberProtectedProp { get; set;}
public static void StaticPublicMethod(){}
private static void StaticPrivateMethod(){}
protected static void StaticProtectedMethod(){}
internal static void StaticInternalMethod(){}
public void MemberPublicMethod(){}
private void MemberPrivateMethod(){}
protected void MemberProtectedMethod(){}
internal void MemberInternalMethod(){}
}
public class SuperSample
{
static public int __StatciPublicField = 1;
static private int __StaticPrivateField = 2;
static internal int __StaticInternalField = 3;
static protected int __StaticProtectedField = 3;
static public int __StatciPublicProp {get;set;}
static private int __StaticPrivateProp {get;set;}
static internal int __StaticInternalProp {get;set;}
static protected int __StaticProtectedProp {get;set;}
public const int __ConstPublicField = 4;
private const int __ConstPrivateField = 5;
internal const int __ConstInternalField = 6;
protected const int __ConstProtectedField = 6;
public int __MemberPublicField = 7;
internal int __MemberInternalField = 7;
private int __MemberPrivateField = 7;
protected int __MemberProtectedField = 7;
readonly public int __roMemberPublicField = 7;
readonly internal int __roMemberInternalField = 7;
readonly private int __roMemberPrivateField = 7;
readonly protected int __roMemberProtectedField = 7;
public int __MemberPublicProp { get; set;}
internal int __MemberInternalProp { get; set;}
private int __MemberPrivateProp { get; set;}
protected int __MemberProtectedProp { get; set;}
public static void __StaticPublicMethod(){}
private static void __StaticPrivateMethod(){}
protected static void __StaticProtectedMethod(){}
internal static void __StaticInternalMethod(){}
public void __MemberPublicMethod(){}
private void __MemberPrivateMethod(){}
protected void __MemberProtectedMethod(){}
internal void __MemberInternalMethod(){}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment