Example #1
0
 public CSharpSqlServerBaseClassParser(TargetFramework targetFramework, CSharpVersion cSharpVersion,
                                       BaseClassParseOptions parseOptions) : base(
         new List <string> {
     targetFramework.ToString(), cSharpVersion.ToString()
 }, parseOptions)
 {
 }
Example #2
0
		public static ILanguage GetLanguage (CSharpVersion version)
		{
			switch (version) {
			case CSharpVersion.None:
				return new CSharp ();
			case CSharpVersion.V1:
				return new CSharpV1 ();
			case CSharpVersion.V2:
				return new CSharpV2 ();
			case CSharpVersion.V3:
				return new CSharpV3 ();
			default:
				throw new ArgumentException ();
			}
		}
Example #3
0
        public static ILanguage GetLanguage(CSharpVersion version)
        {
            switch (version)
            {
            case CSharpVersion.None:
                return(new CSharp());

            case CSharpVersion.V5:
                return(new CSharpV5());

            case CSharpVersion.V6:
                return(new CSharpV6());

            default:
                throw new ArgumentException();
            }
        }
Example #4
0
        public static ILanguage GetLanguage(CSharpVersion version)
        {
            switch (version)
            {
            case CSharpVersion.None:
                return(new CSharp());

            case CSharpVersion.V1:
                return(new CSharpV1());

            case CSharpVersion.V2:
                return(new CSharpV2());

            case CSharpVersion.V3:
                return(new CSharpV3());

            default:
                throw new ArgumentException();
            }
        }
Example #5
0
        public static ILanguage GetLanguage(CSharpVersion version)
        {
            switch (version)
            {
            case CSharpVersion.None:
                return(CSharp.Instance);

            case CSharpVersion.V5:
                return(CSharpV5.Instance);

            case CSharpVersion.V6:
                return(CSharpV6.Instance);

            case CSharpVersion.V7:
                return(CSharpV7.Instance);

            default:
                throw new ArgumentException();
            }
        }
Example #6
0
		public static ILanguage GetLanguage(CSharpVersion version)
		{
			switch (version)
			{
				case 0:
				{
					return LanguageFactory.CSharp.get_Instance();
				}
				case 1:
				{
					return LanguageFactory.CSharpV5.get_Instance();
				}
				case 2:
				{
					return LanguageFactory.CSharpV6.get_Instance();
				}
				case 3:
				{
					return LanguageFactory.CSharpV7.get_Instance();
				}
			}
			throw new ArgumentException();
		}
Example #7
0
 public CSharpVersionOption(CSharpVersion version, String displayDescription)
 {
     Version            = version;
     DisplayDescription = displayDescription;
 }