Exemplo n.º 1
0
 public InterfaceProperty(string name, List <Type> types, bool isOptional = false)
 {
     Name  = new PropertyName(name, this);
     Types = TypescriptTypeStore.AddTypes(types, true);
     foreach (var t in Types)
     {
         if (t.IsExcluded)
         {
             AddDocumentationLine(t.DocumentationExcludedLine);
         }
     }
     IsOptional = isOptional;
     //AddDocumentationLine($"Original type: {Type.SourceType.Name}");
 }
Exemplo n.º 2
0
 public CodeGenerator(List <string> excludedNamespaces, List <string> excludedTypes)
 {
     TypescriptTypeStore.LoadExclusionRules(excludedNamespaces, excludedTypes);
 }
 internal TypeCodeGenerator(Type type, NamespaceCodeGenerator namespaceCodeGenerator)
 {
     this.type = type;
     this.namespaceCodeGenerator = namespaceCodeGenerator;
     TypescriptType = TypescriptTypeStore.AddType(type, false);
 }