Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2013 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4968682 to your computer and use it in GitHub Desktop.
Save anonymous/4968682 to your computer and use it in GitHub Desktop.
public abstract class TypeName {
}
private sealed class BuiltInTypeName : TypeName {
private BuiltInTypeName() {
}
public static bool operator ==(BuiltInTypeName a, BuiltInTypeName b) {
return Object.ReferenceEquals(a, b);
}
public static BuiltInTypeName UByteTypeName = new BuiltInTypeName();
public static BuiltInTypeName SByteTypeName = new BuiltInTypeName();
public static BuiltInTypeName UShortTypeName = new BuiltInTypeName();
public static BuiltInTypeName SShortTypeName = new BuiltInTypeName();
public static BuiltInTypeName UIntTypeName = new BuiltInTypeName();
public static BuiltInTypeName SIntTypeName = new BuiltInTypeName();
public static BuiltInTypeName ULongTypeName = new BuiltInTypeName();
public static BuiltInTypeName SLongTypeName = new BuiltInTypeName();
}
public sealed class QualifiedTypeName : TypeName {
public IList<string> Segments { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment