public static bool TypeCastCheck(string InArgument, Type InType, out string OutErrorMessage) { IArgumentDescription description = Singleton <ArgumentDescriptionRepository> .instance.GetDescription(InType); DebugHelper.Assert(description != null); return(description.CheckConvert(InArgument, InType, out OutErrorMessage)); }
public static bool TypeCastCheck(string InArgument, Type InType, out string OutErrorMessage) { IArgumentDescription DescriptionInterface = ArgumentDescriptionRepository.instance.GetDescription(InType); DebugHelper.Assert(DescriptionInterface != null); return(DescriptionInterface.CheckConvert(InArgument, InType, out OutErrorMessage)); }