Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Defines the types of cars we support
- /// </summary>
- public enum CarType
- {
- /// <summary>
- /// VW - the peoples car
- /// </summary>
- Volkswagen,
- public enum CarTypes
- Volkswagen = 1,
- /// <summary>
- /// They own lambo... can't be all that bad
- /// </summary>
- Audi = 2,
- /// <summary>
- /// Good, cheap, reliable
- /// </summary>
- Toyota = 4,
- using TotallyDifferentNameSpace.Enums;
- namespace EnumEx
- {
- class Program
- {
- static void Main(string[] args)
- {
- CarType car = CarType.Audi;
- PetrolType pType = PetrolType.Diesel;
- }
- }
- public enum CarType
- {
- Volkswagen,
- Audi,
- Toyota,
- Ford,
- Porsche,
- Lada
- }
- }
- namespace TotallyDifferentNameSpace.Enums
- {
- public enum PetrolType
- {
- Gasoline,
- Diesel
- }
- }
- public class A : ISomeInterface
- {
- public static readonly A Instance = new A();
- private A()
- {
- }
- }
- public class B : ISomeInterface
- {
- public static readonly B Instance = new A();
- private B()
- {
- }
- }
Add Comment
Please, Sign In to add comment