internal NodeDefinition(NType scope, string displayName, string description, string symbolName) { Scope = scope; DisplayName = displayName.Humanize(LetterCasing.Title); Description = description; SymbolName = symbolName; }
public ParameterDefinition(ParameterInfo parameterInfo) { Type = Primitives.GetNTypeFromSystemType(parameterInfo.ParameterType); if (Type == null) { throw new Exception("Failed to load unknown primitive type: " + parameterInfo.ParameterType.FullName); } DisplayName = parameterInfo.Name.Humanize(LetterCasing.Title); Position = parameterInfo.Position; IsOptional = parameterInfo.IsOptional; IsOut = parameterInfo.IsOut; }
protected bool Equals(NType other) { return(string.Equals(QualifiedName, other?.QualifiedName)); }
public static Type GetSystemTypeFromNType(NType nType) { return(NTypeToCSharpTypeMap[nType.QualifiedName]); }