Skip to content

Instantly share code, notes, and snippets.

@SLIB53
Last active September 11, 2015 18:11
Show Gist options
  • Save SLIB53/c05b6bff65b2db9efb22 to your computer and use it in GitHub Desktop.
Save SLIB53/c05b6bff65b2db9efb22 to your computer and use it in GitHub Desktop.
C# Document Structure Example
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using Alpha;
using Beta.Alpha;
using Beta.Beta;
namespace Example
{
public delegate int DelegateExample();
public abstract class Foo
{
public virtual void VirtualMethod()
{
}
public abstract void AbstractMethod();
}
public class Boo : Foo
{
public const int PublicConstantField = 0;
public static int PublicStaticField;
public static readonly int PublicStaticROField;
public readonly int PublicRO;
public int PublicField;
protected const int protectedConstantField = 0;
protected static int protectedStaticField;
protected static readonly int protectedStaticROField;
protected readonly int protectedRO;
protected int protectedField;
private const int privateConstantField = 0;
private static int privateStaticField;
private static readonly int privateStaticROField;
private readonly int privateRO;
private int privateField;
private int _backsProperty;
static Boo()
{
}
public Boo()
{
}
private Boo(int x)
{
}
public int PublicProperty
{
get { return _backsProperty; }
private set { _backsProperty = value; }
}
private int PrivateProperty { get; set; }
public event DelegateExample PublicEvent;
private event DelegateExample PrivateEvent;
public static void PublicStaticMethod()
{
}
public override void AbstractMethod()
{
}
public void PublicMethod()
{
}
private static void privateStaticMethod()
{
}
private void privateMethod()
{
}
public static Boo operator +(Boo x, Boo y)
{
...
}
public static implicit operator Boo(int i)
{
...
}
public static implicit operator int(Boo x)
{
...
}
public static explicit operator float(Boo x)
{
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment