CSharpUtils.Templates.TemplateCodeGen.GetTemplateCodeType C# (CSharp) Méthode

GetTemplateCodeType() public méthode

public GetTemplateCodeType ( ) : Type
Résultat System.Type
		public Type GetTemplateCodeType()
		{
			return GetTemplateCodeTypeByCode(GetCode());
		}

Usage Example

		/// <summary>
		/// 
		/// </summary>
		/// <param name="TemplateString"></param>
		/// <returns></returns>
		async protected Task<Type> GetTemplateCodeTypeByStringAsync(String TemplateString)
		{
			var TemplateCodeGen = new TemplateCodeGen(TemplateString, this);
			TemplateCodeGen.OutputGeneratedCode = OutputGeneratedCode;

			Exception YieldedException = null;

			var Value = await Task.Run(() =>
			{
				try
				{
					return TemplateCodeGen.GetTemplateCodeType();
				}
				catch (Exception Exception)
				{
					YieldedException = Exception;
					return null;
				}
			});

			if (YieldedException != null) throw YieldedException;

			return Value;
			//return new TemplateCodeGenRoslyn(TemplateString, this).GetTemplateCodeType();
		}
All Usage Examples Of CSharpUtils.Templates.TemplateCodeGen::GetTemplateCodeType