@tsonic/dotnet 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +21 -21
  2. package/Microsoft.VisualBasic/internal/index.d.ts +24 -24
  3. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +30 -30
  4. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +16 -16
  5. package/Microsoft.Win32/internal/index.d.ts +12 -12
  6. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +19 -19
  7. package/System/bindings.json +114 -114
  8. package/System/internal/index.d.ts +1277 -1289
  9. package/System/internal/metadata.json +73 -73
  10. package/System.Buffers/internal/index.d.ts +13 -13
  11. package/System.CodeDom.Compiler/internal/index.d.ts +13 -13
  12. package/System.Collections/internal/index.d.ts +66 -68
  13. package/System.Collections.Concurrent/internal/index.d.ts +24 -24
  14. package/System.Collections.Frozen/bindings.json +20 -20
  15. package/System.Collections.Frozen/internal/index.d.ts +10 -10
  16. package/System.Collections.Frozen/internal/metadata.json +10 -10
  17. package/System.Collections.Generic/bindings.json +44 -20
  18. package/System.Collections.Generic/internal/index.d.ts +141 -133
  19. package/System.Collections.Generic/internal/metadata.json +26 -10
  20. package/System.Collections.Immutable/internal/index.d.ts +121 -121
  21. package/System.Collections.ObjectModel/internal/index.d.ts +23 -23
  22. package/System.Collections.Specialized/internal/index.d.ts +85 -87
  23. package/System.ComponentModel/internal/index.d.ts +595 -597
  24. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +105 -105
  25. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +9 -9
  26. package/System.ComponentModel.Design/internal/index.d.ts +90 -90
  27. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +37 -37
  28. package/System.Data/internal/index.d.ts +225 -225
  29. package/System.Data.Common/internal/index.d.ts +62 -62
  30. package/System.Data.SqlTypes/internal/index.d.ts +73 -73
  31. package/System.Diagnostics/internal/index.d.ts +343 -343
  32. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +50 -50
  33. package/System.Diagnostics.Contracts/internal/index.d.ts +20 -20
  34. package/System.Diagnostics.Metrics/internal/index.d.ts +46 -46
  35. package/System.Diagnostics.SymbolStore/internal/index.d.ts +9 -9
  36. package/System.Diagnostics.Tracing/internal/index.d.ts +44 -44
  37. package/System.Drawing/internal/index.d.ts +99 -99
  38. package/System.Dynamic/internal/index.d.ts +33 -33
  39. package/System.Formats.Asn1/internal/index.d.ts +12 -12
  40. package/System.Formats.Tar/internal/index.d.ts +17 -17
  41. package/System.Globalization/internal/index.d.ts +51 -51
  42. package/System.IO/internal/index.d.ts +172 -172
  43. package/System.IO.Compression/internal/index.d.ts +56 -56
  44. package/System.IO.Enumeration/internal/index.d.ts +6 -6
  45. package/System.IO.IsolatedStorage/internal/index.d.ts +17 -17
  46. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -11
  47. package/System.IO.Pipelines/internal/index.d.ts +13 -13
  48. package/System.IO.Pipes/internal/index.d.ts +32 -32
  49. package/System.Linq/internal/index.d.ts +187 -187
  50. package/System.Linq.Expressions/internal/index.d.ts +203 -203
  51. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
  52. package/System.Net/internal/index.d.ts +218 -220
  53. package/System.Net.Cache/internal/index.d.ts +10 -10
  54. package/System.Net.Http/internal/index.d.ts +89 -89
  55. package/System.Net.Http.Headers/internal/index.d.ts +86 -86
  56. package/System.Net.Http.Json/internal/index.d.ts +59 -59
  57. package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
  58. package/System.Net.Mail/internal/index.d.ts +92 -92
  59. package/System.Net.Mime/internal/index.d.ts +6 -6
  60. package/System.Net.NetworkInformation/internal/index.d.ts +39 -39
  61. package/System.Net.Quic/internal/index.d.ts +13 -13
  62. package/System.Net.Security/internal/index.d.ts +70 -70
  63. package/System.Net.ServerSentEvents/internal/index.d.ts +3 -3
  64. package/System.Net.Sockets/internal/index.d.ts +94 -94
  65. package/System.Net.WebSockets/internal/index.d.ts +46 -46
  66. package/System.Numerics/bindings.json +384 -0
  67. package/System.Numerics/internal/index.d.ts +128 -130
  68. package/System.Numerics/internal/metadata.json +256 -0
  69. package/System.Reflection/internal/index.d.ts +271 -271
  70. package/System.Reflection.Emit/internal/index.d.ts +123 -123
  71. package/System.Reflection.Metadata/bindings.json +48 -0
  72. package/System.Reflection.Metadata/internal/index.d.ts +179 -179
  73. package/System.Reflection.Metadata/internal/metadata.json +32 -0
  74. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +40 -40
  75. package/System.Reflection.PortableExecutable/internal/index.d.ts +26 -26
  76. package/System.Resources/internal/index.d.ts +38 -38
  77. package/System.Runtime/internal/index.d.ts +9 -9
  78. package/System.Runtime.CompilerServices/internal/index.d.ts +168 -168
  79. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
  80. package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -3
  81. package/System.Runtime.InteropServices/bindings.json +22 -22
  82. package/System.Runtime.InteropServices/internal/index.d.ts +184 -184
  83. package/System.Runtime.InteropServices/internal/metadata.json +13 -13
  84. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +30 -30
  85. package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -3
  86. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +50 -50
  87. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +63 -63
  88. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +1 -1
  89. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
  90. package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
  91. package/System.Runtime.Loader/internal/index.d.ts +9 -9
  92. package/System.Runtime.Remoting/internal/index.d.ts +2 -2
  93. package/System.Runtime.Serialization/internal/index.d.ts +113 -115
  94. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +19 -19
  95. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
  96. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -5
  97. package/System.Runtime.Serialization.Json/internal/index.d.ts +28 -28
  98. package/System.Runtime.Versioning/internal/index.d.ts +22 -22
  99. package/System.Security/internal/index.d.ts +63 -63
  100. package/System.Security.AccessControl/internal/index.d.ts +84 -84
  101. package/System.Security.Authentication/internal/index.d.ts +6 -6
  102. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +13 -13
  103. package/System.Security.Claims/internal/index.d.ts +38 -40
  104. package/System.Security.Cryptography/internal/index.d.ts +378 -378
  105. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +172 -172
  106. package/System.Security.Permissions/internal/index.d.ts +1 -1
  107. package/System.Security.Policy/internal/index.d.ts +6 -6
  108. package/System.Security.Principal/internal/index.d.ts +29 -31
  109. package/System.Text/internal/index.d.ts +94 -94
  110. package/System.Text.Encodings.Web/internal/index.d.ts +3 -3
  111. package/System.Text.Json/internal/index.d.ts +103 -103
  112. package/System.Text.Json.Nodes/internal/index.d.ts +73 -73
  113. package/System.Text.Json.Schema/internal/index.d.ts +7 -7
  114. package/System.Text.Json.Serialization/internal/index.d.ts +34 -34
  115. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +57 -57
  116. package/System.Text.RegularExpressions/internal/index.d.ts +29 -29
  117. package/System.Text.Unicode/internal/index.d.ts +6 -6
  118. package/System.Threading/internal/index.d.ts +160 -160
  119. package/System.Threading.Channels/internal/index.d.ts +12 -12
  120. package/System.Threading.Tasks/internal/index.d.ts +125 -135
  121. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +54 -51
  122. package/System.Threading.Tasks.Sources/internal/index.d.ts +5 -5
  123. package/System.Timers/internal/index.d.ts +8 -8
  124. package/System.Transactions/internal/index.d.ts +51 -51
  125. package/System.Web/internal/index.d.ts +32 -32
  126. package/System.Windows.Input/internal/index.d.ts +2 -2
  127. package/System.Windows.Markup/internal/index.d.ts +2 -2
  128. package/System.Xml/internal/index.d.ts +281 -281
  129. package/System.Xml.Linq/internal/index.d.ts +76 -76
  130. package/System.Xml.Resolvers/internal/index.d.ts +8 -8
  131. package/System.Xml.Schema/internal/index.d.ts +173 -173
  132. package/System.Xml.Serialization/internal/index.d.ts +200 -200
  133. package/System.Xml.XPath/internal/index.d.ts +28 -28
  134. package/System.Xml.Xsl/internal/index.d.ts +53 -53
  135. package/System.Xml.Xsl.Runtime/internal/index.d.ts +72 -72
  136. package/__internal/extensions/index.d.ts +415 -414
  137. package/package.json +1 -1
@@ -19,17 +19,17 @@ import * as System_Internal from "../../System/internal/index.js";
19
19
  import type { Boolean as ClrBoolean, Int32, Int64, Nullable_1, Object as ClrObject, String as ClrString, Type, Void } from "../../System/internal/index.js";
20
20
 
21
21
  export interface DataContract$instance {
22
- readonly baseContract: DataContract;
23
- readonly contractType: string;
22
+ readonly baseContract: DataContract | undefined;
23
+ readonly contractType: string | undefined;
24
24
  readonly dataMembers: ReadOnlyCollection_1<DataMember>;
25
25
  readonly isBuiltInDataContract: boolean;
26
26
  readonly isISerializable: boolean;
27
27
  readonly isReference: boolean;
28
28
  readonly isValueType: boolean;
29
- readonly knownDataContracts: Dictionary_2<XmlQualifiedName, DataContract>;
29
+ readonly knownDataContracts: Dictionary_2<XmlQualifiedName, DataContract> | undefined;
30
30
  readonly originalUnderlyingType: Type;
31
- readonly topLevelElementName: XmlDictionaryString;
32
- readonly topLevelElementNamespace: XmlDictionaryString;
31
+ readonly topLevelElementName: XmlDictionaryString | undefined;
32
+ readonly topLevelElementNamespace: XmlDictionaryString | undefined;
33
33
  readonly underlyingType: Type;
34
34
  readonly xmlName: XmlQualifiedName;
35
35
  equals(obj: unknown): boolean;
@@ -40,7 +40,7 @@ export interface DataContract$instance {
40
40
 
41
41
 
42
42
  export const DataContract: {
43
- getBuiltInDataContract(name: string, ns: string): DataContract;
43
+ getBuiltInDataContract(name: string, ns: string): DataContract | undefined;
44
44
  getXmlName(type_: Type): XmlQualifiedName;
45
45
  };
46
46
 
@@ -49,20 +49,20 @@ export type DataContract = DataContract$instance;
49
49
 
50
50
  export interface DataContractSet$instance {
51
51
  readonly contracts: Dictionary_2<XmlQualifiedName, DataContract>;
52
- readonly knownTypesForObject: Dictionary_2<XmlQualifiedName, DataContract>;
52
+ readonly knownTypesForObject: Dictionary_2<XmlQualifiedName, DataContract> | undefined;
53
53
  readonly processedContracts: Dictionary_2<DataContract, unknown>;
54
54
  readonly surrogateData: Hashtable;
55
55
  getDataContract(type_: Type): DataContract;
56
- getDataContract(key: XmlQualifiedName): DataContract;
57
- getReferencedType(xmlName: XmlQualifiedName, dataContract: DataContract, referencedContract: DataContract, genericParameters: unknown[], supportGenericTypes?: Nullable_1<System_Internal.Boolean>): Type;
58
- importSchemaSet(schemaSet: XmlSchemaSet, typeNames: IEnumerable_1<XmlQualifiedName>, importXmlDataType: boolean): void;
56
+ getDataContract(key: XmlQualifiedName): DataContract | undefined;
57
+ getReferencedType(xmlName: XmlQualifiedName, dataContract: DataContract, referencedContract: DataContract | undefined, genericParameters: unknown[] | undefined, supportGenericTypes?: Nullable_1<System_Internal.Boolean>): Type | undefined;
58
+ importSchemaSet(schemaSet: XmlSchemaSet, typeNames: IEnumerable_1<XmlQualifiedName> | undefined, importXmlDataType: boolean): void;
59
59
  importSchemaSet(schemaSet: XmlSchemaSet, elements: IEnumerable_1<XmlSchemaElement>, importXmlDataType: boolean): List_1<XmlQualifiedName>;
60
60
  }
61
61
 
62
62
 
63
63
  export const DataContractSet: {
64
- new(dataContractSurrogate: ISerializationSurrogateProvider, referencedTypes: IEnumerable_1<Type>, referencedCollectionTypes: IEnumerable_1<Type>): DataContractSet$instance;
65
- new(dataContractSet: DataContractSet): DataContractSet$instance;
64
+ new(dataContractSurrogate: ISerializationSurrogateProvider, referencedTypes: IEnumerable_1<Type> | undefined, referencedCollectionTypes: IEnumerable_1<Type> | undefined): DataContractSet;
65
+ new(dataContractSet: DataContractSet): DataContractSet;
66
66
  };
67
67
 
68
68
 
@@ -79,29 +79,29 @@ export interface DataMember$instance {
79
79
 
80
80
 
81
81
  export const DataMember: {
82
- new(): DataMember$instance;
82
+ new(): DataMember;
83
83
  };
84
84
 
85
85
 
86
86
  export type DataMember = DataMember$instance;
87
87
 
88
88
  export interface XmlDataContract$instance extends DataContract {
89
- readonly contractType: string;
89
+ readonly contractType: string | undefined;
90
90
  readonly hasRoot: boolean;
91
91
  readonly isAnonymous: boolean;
92
92
  readonly isBuiltInDataContract: boolean;
93
93
  readonly isTopLevelElementNullable: boolean;
94
94
  isTypeDefinedOnImport: boolean;
95
95
  isValueType: boolean;
96
- readonly knownDataContracts: Dictionary_2<XmlQualifiedName, DataContract>;
97
- readonly topLevelElementName: XmlDictionaryString;
98
- readonly topLevelElementNamespace: XmlDictionaryString;
99
- readonly xsdType: XmlSchemaType;
96
+ readonly knownDataContracts: Dictionary_2<XmlQualifiedName, DataContract> | undefined;
97
+ readonly topLevelElementName: XmlDictionaryString | undefined;
98
+ readonly topLevelElementNamespace: XmlDictionaryString | undefined;
99
+ readonly xsdType: XmlSchemaType | undefined;
100
100
  }
101
101
 
102
102
 
103
103
  export const XmlDataContract: {
104
- new(): XmlDataContract$instance;
104
+ new(): XmlDataContract;
105
105
  };
106
106
 
107
107
 
@@ -29,8 +29,8 @@ export enum TypeFilterLevel {
29
29
 
30
30
 
31
31
  export interface IFieldInfo$instance {
32
- fieldNames: string[];
33
- fieldTypes: Type[];
32
+ fieldNames: string[] | undefined;
33
+ fieldTypes: Type[] | undefined;
34
34
  }
35
35
 
36
36
 
@@ -18,16 +18,16 @@ export interface BinaryFormatter$instance {
18
18
  binder: SerializationBinder;
19
19
  context: StreamingContext;
20
20
  filterLevel: TypeFilterLevel;
21
- surrogateSelector: ISurrogateSelector;
21
+ surrogateSelector: ISurrogateSelector | undefined;
22
22
  typeFormat: FormatterTypeStyle;
23
- deserialize(serializationStream: Stream): unknown;
24
- serialize(serializationStream: Stream, graph: unknown): void;
23
+ deserialize(serializationStream: Stream | undefined): unknown;
24
+ serialize(serializationStream: Stream | undefined, graph: unknown | undefined): void;
25
25
  }
26
26
 
27
27
 
28
28
  export const BinaryFormatter: {
29
- new(): BinaryFormatter$instance;
30
- new(selector: ISurrogateSelector, context: StreamingContext): BinaryFormatter$instance;
29
+ new(): BinaryFormatter;
30
+ new(selector: ISurrogateSelector | undefined, context: StreamingContext): BinaryFormatter;
31
31
  };
32
32
 
33
33
 
@@ -17,8 +17,8 @@ import * as System_Internal from "../../System/internal/index.js";
17
17
  import type { Boolean as ClrBoolean, Byte, Int32, Object as ClrObject, String as ClrString, Type, Void } from "../../System/internal/index.js";
18
18
 
19
19
  export interface IXmlJsonReaderInitializer$instance {
20
- setInput(buffer: byte[], offset: int, count: int, encoding: Encoding, quotas: XmlDictionaryReaderQuotas, onClose: OnXmlDictionaryReaderClose): void;
21
- setInput(stream: Stream, encoding: Encoding, quotas: XmlDictionaryReaderQuotas, onClose: OnXmlDictionaryReaderClose): void;
20
+ setInput(buffer: byte[], offset: int, count: int, encoding: Encoding | undefined, quotas: XmlDictionaryReaderQuotas, onClose: OnXmlDictionaryReaderClose | undefined): void;
21
+ setInput(stream: Stream, encoding: Encoding | undefined, quotas: XmlDictionaryReaderQuotas, onClose: OnXmlDictionaryReaderClose | undefined): void;
22
22
  }
23
23
 
24
24
 
@@ -42,32 +42,32 @@ export interface DataContractJsonSerializer$instance extends XmlObjectSerializer
42
42
  getSerializationSurrogateProvider(): ISerializationSurrogateProvider;
43
43
  isStartObject(reader: XmlReader): boolean;
44
44
  isStartObject(reader: XmlDictionaryReader): boolean;
45
- readObject(stream: Stream): unknown;
46
- readObject(reader: XmlReader): unknown;
47
- readObject(reader: XmlReader, verifyObjectName: boolean): unknown;
48
- readObject(reader: XmlDictionaryReader): unknown;
49
- readObject(reader: XmlDictionaryReader, verifyObjectName: boolean): unknown;
45
+ readObject(stream: Stream): unknown | undefined;
46
+ readObject(reader: XmlReader): unknown | undefined;
47
+ readObject(reader: XmlReader, verifyObjectName: boolean): unknown | undefined;
48
+ readObject(reader: XmlDictionaryReader): unknown | undefined;
49
+ readObject(reader: XmlDictionaryReader, verifyObjectName: boolean): unknown | undefined;
50
50
  setSerializationSurrogateProvider(provider: ISerializationSurrogateProvider): void;
51
51
  writeEndObject(writer: XmlWriter): void;
52
52
  writeEndObject(writer: XmlDictionaryWriter): void;
53
- writeObject(stream: Stream, graph: unknown): void;
54
- writeObject(writer: XmlWriter, graph: unknown): void;
55
- writeObject(writer: XmlDictionaryWriter, graph: unknown): void;
56
- writeObjectContent(writer: XmlWriter, graph: unknown): void;
57
- writeObjectContent(writer: XmlDictionaryWriter, graph: unknown): void;
58
- writeStartObject(writer: XmlWriter, graph: unknown): void;
59
- writeStartObject(writer: XmlDictionaryWriter, graph: unknown): void;
53
+ writeObject(stream: Stream, graph: unknown | undefined): void;
54
+ writeObject(writer: XmlWriter, graph: unknown | undefined): void;
55
+ writeObject(writer: XmlDictionaryWriter, graph: unknown | undefined): void;
56
+ writeObjectContent(writer: XmlWriter, graph: unknown | undefined): void;
57
+ writeObjectContent(writer: XmlDictionaryWriter, graph: unknown | undefined): void;
58
+ writeStartObject(writer: XmlWriter, graph: unknown | undefined): void;
59
+ writeStartObject(writer: XmlDictionaryWriter, graph: unknown | undefined): void;
60
60
  }
61
61
 
62
62
 
63
63
  export const DataContractJsonSerializer: {
64
- new(type_: Type): DataContractJsonSerializer$instance;
65
- new(type_: Type, rootName: string): DataContractJsonSerializer$instance;
66
- new(type_: Type, rootName: XmlDictionaryString): DataContractJsonSerializer$instance;
67
- new(type_: Type, knownTypes: IEnumerable_1<Type>): DataContractJsonSerializer$instance;
68
- new(type_: Type, rootName: string, knownTypes: IEnumerable_1<Type>): DataContractJsonSerializer$instance;
69
- new(type_: Type, rootName: XmlDictionaryString, knownTypes: IEnumerable_1<Type>): DataContractJsonSerializer$instance;
70
- new(type_: Type, settings: DataContractJsonSerializerSettings): DataContractJsonSerializer$instance;
64
+ new(type_: Type): DataContractJsonSerializer;
65
+ new(type_: Type, rootName: string | undefined): DataContractJsonSerializer;
66
+ new(type_: Type, rootName: XmlDictionaryString | undefined): DataContractJsonSerializer;
67
+ new(type_: Type, knownTypes: IEnumerable_1<Type> | undefined): DataContractJsonSerializer;
68
+ new(type_: Type, rootName: string | undefined, knownTypes: IEnumerable_1<Type> | undefined): DataContractJsonSerializer;
69
+ new(type_: Type, rootName: XmlDictionaryString | undefined, knownTypes: IEnumerable_1<Type> | undefined): DataContractJsonSerializer;
70
+ new(type_: Type, settings: DataContractJsonSerializerSettings | undefined): DataContractJsonSerializer;
71
71
  };
72
72
 
73
73
 
@@ -79,34 +79,34 @@ export interface DataContractJsonSerializerSettings$instance {
79
79
  ignoreExtensionDataObject: boolean;
80
80
  knownTypes: IEnumerable_1<Type>;
81
81
  maxItemsInObjectGraph: int;
82
- rootName: string;
82
+ rootName: string | undefined;
83
83
  serializeReadOnlyTypes: boolean;
84
84
  useSimpleDictionaryFormat: boolean;
85
85
  }
86
86
 
87
87
 
88
88
  export const DataContractJsonSerializerSettings: {
89
- new(): DataContractJsonSerializerSettings$instance;
89
+ new(): DataContractJsonSerializerSettings;
90
90
  };
91
91
 
92
92
 
93
93
  export type DataContractJsonSerializerSettings = DataContractJsonSerializerSettings$instance;
94
94
 
95
95
  export abstract class DataContractJsonSerializerExtensions$instance {
96
- static getSerializationSurrogateProvider(serializer: DataContractJsonSerializer): ISerializationSurrogateProvider;
97
- static setSerializationSurrogateProvider(serializer: DataContractJsonSerializer, provider: ISerializationSurrogateProvider): void;
96
+ static getSerializationSurrogateProvider(serializer: DataContractJsonSerializer): ISerializationSurrogateProvider | undefined;
97
+ static setSerializationSurrogateProvider(serializer: DataContractJsonSerializer, provider: ISerializationSurrogateProvider | undefined): void;
98
98
  }
99
99
 
100
100
 
101
101
  export type DataContractJsonSerializerExtensions = DataContractJsonSerializerExtensions$instance;
102
102
 
103
103
  export abstract class JsonReaderWriterFactory$instance {
104
- static createJsonReader(buffer: byte[], offset: int, count: int, encoding: Encoding, quotas: XmlDictionaryReaderQuotas, onClose: OnXmlDictionaryReaderClose): XmlDictionaryReader;
104
+ static createJsonReader(buffer: byte[], offset: int, count: int, encoding: Encoding | undefined, quotas: XmlDictionaryReaderQuotas, onClose: OnXmlDictionaryReaderClose | undefined): XmlDictionaryReader;
105
105
  static createJsonReader(buffer: byte[], offset: int, count: int, quotas: XmlDictionaryReaderQuotas): XmlDictionaryReader;
106
106
  static createJsonReader(buffer: byte[], quotas: XmlDictionaryReaderQuotas): XmlDictionaryReader;
107
- static createJsonReader(stream: Stream, encoding: Encoding, quotas: XmlDictionaryReaderQuotas, onClose: OnXmlDictionaryReaderClose): XmlDictionaryReader;
107
+ static createJsonReader(stream: Stream, encoding: Encoding | undefined, quotas: XmlDictionaryReaderQuotas, onClose: OnXmlDictionaryReaderClose | undefined): XmlDictionaryReader;
108
108
  static createJsonReader(stream: Stream, quotas: XmlDictionaryReaderQuotas): XmlDictionaryReader;
109
- static createJsonWriter(stream: Stream, encoding: Encoding, ownsStream: boolean, indent: boolean, indentChars: string): XmlDictionaryWriter;
109
+ static createJsonWriter(stream: Stream, encoding: Encoding, ownsStream: boolean, indent: boolean, indentChars: string | undefined): XmlDictionaryWriter;
110
110
  static createJsonWriter(stream: Stream, encoding: Encoding, ownsStream: boolean, indent: boolean): XmlDictionaryWriter;
111
111
  static createJsonWriter(stream: Stream, encoding: Encoding, ownsStream: boolean): XmlDictionaryWriter;
112
112
  static createJsonWriter(stream: Stream, encoding: Encoding): XmlDictionaryWriter;
@@ -34,7 +34,7 @@ export interface ComponentGuaranteesAttribute$instance extends Attribute {
34
34
 
35
35
 
36
36
  export const ComponentGuaranteesAttribute: {
37
- new(guarantees: ComponentGuaranteesOptions): ComponentGuaranteesAttribute$instance;
37
+ new(guarantees: ComponentGuaranteesOptions): ComponentGuaranteesAttribute;
38
38
  };
39
39
 
40
40
 
@@ -53,9 +53,9 @@ export interface FrameworkName$instance {
53
53
 
54
54
 
55
55
  export const FrameworkName: {
56
- new(identifier: string, version: Version): FrameworkName$instance;
57
- new(identifier: string, version: Version, profile: string): FrameworkName$instance;
58
- new(frameworkName: string): FrameworkName$instance;
56
+ new(identifier: string, version: Version): FrameworkName;
57
+ new(identifier: string, version: Version, profile: string | undefined): FrameworkName;
58
+ new(frameworkName: string): FrameworkName;
59
59
  };
60
60
 
61
61
 
@@ -71,13 +71,13 @@ export type FrameworkName = FrameworkName$instance & __FrameworkName$views;
71
71
 
72
72
  export interface ObsoletedOSPlatformAttribute$instance extends OSPlatformAttribute {
73
73
  readonly message: string;
74
- url: string;
74
+ url: string | undefined;
75
75
  }
76
76
 
77
77
 
78
78
  export const ObsoletedOSPlatformAttribute: {
79
- new(platformName: string): ObsoletedOSPlatformAttribute$instance;
80
- new(platformName: string, message: string): ObsoletedOSPlatformAttribute$instance;
79
+ new(platformName: string | undefined): ObsoletedOSPlatformAttribute;
80
+ new(platformName: string | undefined, message: string | undefined): ObsoletedOSPlatformAttribute;
81
81
  };
82
82
 
83
83
 
@@ -96,13 +96,13 @@ export type OSPlatformAttribute = OSPlatformAttribute$instance;
96
96
 
97
97
  export interface RequiresPreviewFeaturesAttribute$instance extends Attribute {
98
98
  readonly message: string;
99
- url: string;
99
+ url: string | undefined;
100
100
  }
101
101
 
102
102
 
103
103
  export const RequiresPreviewFeaturesAttribute: {
104
- new(): RequiresPreviewFeaturesAttribute$instance;
105
- new(message: string): RequiresPreviewFeaturesAttribute$instance;
104
+ new(): RequiresPreviewFeaturesAttribute;
105
+ new(message: string | undefined): RequiresPreviewFeaturesAttribute;
106
106
  };
107
107
 
108
108
 
@@ -115,8 +115,8 @@ export interface ResourceConsumptionAttribute$instance extends Attribute {
115
115
 
116
116
 
117
117
  export const ResourceConsumptionAttribute: {
118
- new(resourceScope: ResourceScope): ResourceConsumptionAttribute$instance;
119
- new(resourceScope: ResourceScope, consumptionScope: ResourceScope): ResourceConsumptionAttribute$instance;
118
+ new(resourceScope: ResourceScope): ResourceConsumptionAttribute;
119
+ new(resourceScope: ResourceScope, consumptionScope: ResourceScope): ResourceConsumptionAttribute;
120
120
  };
121
121
 
122
122
 
@@ -128,7 +128,7 @@ export interface ResourceExposureAttribute$instance extends Attribute {
128
128
 
129
129
 
130
130
  export const ResourceExposureAttribute: {
131
- new(exposureLevel: ResourceScope): ResourceExposureAttribute$instance;
131
+ new(exposureLevel: ResourceScope): ResourceExposureAttribute;
132
132
  };
133
133
 
134
134
 
@@ -139,7 +139,7 @@ export interface SupportedOSPlatformAttribute$instance extends OSPlatformAttribu
139
139
 
140
140
 
141
141
  export const SupportedOSPlatformAttribute: {
142
- new(platformName: string): SupportedOSPlatformAttribute$instance;
142
+ new(platformName: string): SupportedOSPlatformAttribute;
143
143
  };
144
144
 
145
145
 
@@ -150,20 +150,20 @@ export interface SupportedOSPlatformGuardAttribute$instance extends OSPlatformAt
150
150
 
151
151
 
152
152
  export const SupportedOSPlatformGuardAttribute: {
153
- new(platformName: string): SupportedOSPlatformGuardAttribute$instance;
153
+ new(platformName: string): SupportedOSPlatformGuardAttribute;
154
154
  };
155
155
 
156
156
 
157
157
  export type SupportedOSPlatformGuardAttribute = SupportedOSPlatformGuardAttribute$instance;
158
158
 
159
159
  export interface TargetFrameworkAttribute$instance extends Attribute {
160
- frameworkDisplayName: string;
160
+ frameworkDisplayName: string | undefined;
161
161
  readonly frameworkName: string;
162
162
  }
163
163
 
164
164
 
165
165
  export const TargetFrameworkAttribute: {
166
- new(frameworkName: string): TargetFrameworkAttribute$instance;
166
+ new(frameworkName: string): TargetFrameworkAttribute;
167
167
  };
168
168
 
169
169
 
@@ -174,7 +174,7 @@ export interface TargetPlatformAttribute$instance extends OSPlatformAttribute {
174
174
 
175
175
 
176
176
  export const TargetPlatformAttribute: {
177
- new(platformName: string): TargetPlatformAttribute$instance;
177
+ new(platformName: string): TargetPlatformAttribute;
178
178
  };
179
179
 
180
180
 
@@ -186,8 +186,8 @@ export interface UnsupportedOSPlatformAttribute$instance extends OSPlatformAttri
186
186
 
187
187
 
188
188
  export const UnsupportedOSPlatformAttribute: {
189
- new(platformName: string): UnsupportedOSPlatformAttribute$instance;
190
- new(platformName: string, message: string): UnsupportedOSPlatformAttribute$instance;
189
+ new(platformName: string): UnsupportedOSPlatformAttribute;
190
+ new(platformName: string, message: string | undefined): UnsupportedOSPlatformAttribute;
191
191
  };
192
192
 
193
193
 
@@ -198,7 +198,7 @@ export interface UnsupportedOSPlatformGuardAttribute$instance extends OSPlatform
198
198
 
199
199
 
200
200
  export const UnsupportedOSPlatformGuardAttribute: {
201
- new(platformName: string): UnsupportedOSPlatformGuardAttribute$instance;
201
+ new(platformName: string): UnsupportedOSPlatformGuardAttribute;
202
202
  };
203
203
 
204
204
 
@@ -206,7 +206,7 @@ export type UnsupportedOSPlatformGuardAttribute = UnsupportedOSPlatformGuardAttr
206
206
 
207
207
  export abstract class VersioningHelper$instance {
208
208
  static makeVersionSafeName(name: string, from_: ResourceScope, to: ResourceScope, type_: Type): string;
209
- static makeVersionSafeName(name: string, from_: ResourceScope, to: ResourceScope): string;
209
+ static makeVersionSafeName(name: string | undefined, from_: ResourceScope, to: ResourceScope): string;
210
210
  }
211
211
 
212
212
 
@@ -41,8 +41,8 @@ export interface IPermission$instance extends ISecurityEncodable {
41
41
  copy(): IPermission;
42
42
  demand(): void;
43
43
  fromXml(e: SecurityElement): void;
44
- intersect(target: IPermission): IPermission;
45
- isSubsetOf(target: IPermission): boolean;
44
+ intersect(target: IPermission | undefined): IPermission | undefined;
45
+ isSubsetOf(target: IPermission | undefined): boolean;
46
46
  toXml(): SecurityElement;
47
47
  }
48
48
 
@@ -72,7 +72,7 @@ export interface AllowPartiallyTrustedCallersAttribute$instance extends Attribut
72
72
 
73
73
 
74
74
  export const AllowPartiallyTrustedCallersAttribute: {
75
- new(): AllowPartiallyTrustedCallersAttribute$instance;
75
+ new(): AllowPartiallyTrustedCallersAttribute;
76
76
  };
77
77
 
78
78
 
@@ -83,35 +83,35 @@ export interface PermissionSet$instance {
83
83
  readonly isReadOnly: boolean;
84
84
  readonly isSynchronized: boolean;
85
85
  readonly syncRoot: unknown;
86
- addPermission(perm: IPermission): IPermission;
86
+ addPermission(perm: IPermission | undefined): IPermission | undefined;
87
87
  assert(): void;
88
88
  containsNonCodeAccessPermissions(): boolean;
89
89
  copy(): PermissionSet;
90
- copyTo(array: ClrArray, index: int): void;
90
+ copyTo(array: ClrArray | undefined, index: int): void;
91
91
  demand(): void;
92
92
  deny(): void;
93
- equals(o: unknown): boolean;
94
- fromXml(et: SecurityElement): void;
93
+ equals(o: unknown | undefined): boolean;
94
+ fromXml(et: SecurityElement | undefined): void;
95
95
  getEnumerator(): IEnumerator;
96
96
  getHashCode(): int;
97
- getPermission(permClass: Type): IPermission;
98
- intersect(other: PermissionSet): PermissionSet;
97
+ getPermission(permClass: Type | undefined): IPermission | undefined;
98
+ intersect(other: PermissionSet | undefined): PermissionSet | undefined;
99
99
  isEmpty(): boolean;
100
- isSubsetOf(target: PermissionSet): boolean;
100
+ isSubsetOf(target: PermissionSet | undefined): boolean;
101
101
  isUnrestricted(): boolean;
102
102
  permitOnly(): void;
103
- removePermission(permClass: Type): IPermission;
104
- setPermission(perm: IPermission): IPermission;
105
- toString(): string;
103
+ removePermission(permClass: Type | undefined): IPermission | undefined;
104
+ setPermission(perm: IPermission | undefined): IPermission | undefined;
105
+ toString(): string | undefined;
106
106
  toXml(): SecurityElement;
107
- union(other: PermissionSet): PermissionSet;
107
+ union(other: PermissionSet | undefined): PermissionSet | undefined;
108
108
  }
109
109
 
110
110
 
111
111
  export const PermissionSet: {
112
- new(state: PermissionState): PermissionSet$instance;
113
- new(permSet: PermissionSet): PermissionSet$instance;
114
- convertPermissionSet(inFormat: string, inData: byte[], outFormat: string): byte[];
112
+ new(state: PermissionState): PermissionSet;
113
+ new(permSet: PermissionSet | undefined): PermissionSet;
114
+ convertPermissionSet(inFormat: string | undefined, inData: byte[] | undefined, outFormat: string | undefined): byte[] | undefined;
115
115
  revertAssert(): void;
116
116
  };
117
117
 
@@ -124,7 +124,7 @@ export interface __PermissionSet$views {
124
124
  As_IStackWalk(): IStackWalk$instance;
125
125
  }
126
126
 
127
- export interface PermissionSet$instance extends System_Runtime_Serialization_Internal.IDeserializationCallback$instance, ISecurityEncodable$instance, IStackWalk$instance {}
127
+ export interface PermissionSet$instance extends System_Runtime_Serialization_Internal.IDeserializationCallback$instance, IStackWalk$instance {}
128
128
 
129
129
  export type PermissionSet = PermissionSet$instance & __PermissionSet$views;
130
130
 
@@ -144,8 +144,8 @@ export interface SecureString$instance {
144
144
 
145
145
 
146
146
  export const SecureString: {
147
- new(): SecureString$instance;
148
- new(value: ptr<char>, length: int): SecureString$instance;
147
+ new(): SecureString;
148
+ new(value: ptr<char>, length: int): SecureString;
149
149
  };
150
150
 
151
151
 
@@ -164,8 +164,8 @@ export interface SecurityCriticalAttribute$instance extends Attribute {
164
164
 
165
165
 
166
166
  export const SecurityCriticalAttribute: {
167
- new(): SecurityCriticalAttribute$instance;
168
- new(scope: SecurityCriticalScope): SecurityCriticalAttribute$instance;
167
+ new(): SecurityCriticalAttribute;
168
+ new(scope: SecurityCriticalScope): SecurityCriticalAttribute;
169
169
  };
170
170
 
171
171
 
@@ -173,56 +173,56 @@ export type SecurityCriticalAttribute = SecurityCriticalAttribute$instance;
173
173
 
174
174
  export interface SecurityElement$instance {
175
175
  attributes: Hashtable;
176
- children: ArrayList;
176
+ children: ArrayList | undefined;
177
177
  tag: string;
178
178
  text: string;
179
- addAttribute(name: string, value: string): void;
180
- addChild(child: SecurityElement): void;
181
- attribute(name: string): string;
179
+ addAttribute(name: string | undefined, value: string | undefined): void;
180
+ addChild(child: SecurityElement | undefined): void;
181
+ attribute(name: string | undefined): string | undefined;
182
182
  copy(): SecurityElement;
183
- equal(other: SecurityElement): boolean;
184
- searchForChildByTag(tag: string): SecurityElement;
185
- searchForTextOfTag(tag: string): string;
186
- toString(): string;
183
+ equal(other: SecurityElement | undefined): boolean;
184
+ searchForChildByTag(tag: string | undefined): SecurityElement | undefined;
185
+ searchForTextOfTag(tag: string | undefined): string | undefined;
186
+ toString(): string | undefined;
187
187
  }
188
188
 
189
189
 
190
190
  export const SecurityElement: {
191
- new(tag: string): SecurityElement$instance;
192
- new(tag: string, text: string): SecurityElement$instance;
193
- escape(str: string): string;
194
- fromString(xml: string): SecurityElement;
195
- isValidAttributeName(name: string): boolean;
196
- isValidAttributeValue(value: string): boolean;
197
- isValidTag(tag: string): boolean;
198
- isValidText(text: string): boolean;
191
+ new(tag: string | undefined): SecurityElement;
192
+ new(tag: string | undefined, text: string | undefined): SecurityElement;
193
+ escape(str: string | undefined): string | undefined;
194
+ fromString(xml: string | undefined): SecurityElement | undefined;
195
+ isValidAttributeName(name: string | undefined): boolean;
196
+ isValidAttributeValue(value: string | undefined): boolean;
197
+ isValidTag(tag: string | undefined): boolean;
198
+ isValidText(text: string | undefined): boolean;
199
199
  };
200
200
 
201
201
 
202
202
  export type SecurityElement = SecurityElement$instance;
203
203
 
204
204
  export interface SecurityException$instance extends SystemException {
205
- demanded: unknown;
206
- denySetInstance: unknown;
207
- failedAssemblyInfo: AssemblyName;
208
- grantedSet: string;
205
+ demanded: unknown | undefined;
206
+ denySetInstance: unknown | undefined;
207
+ failedAssemblyInfo: AssemblyName | undefined;
208
+ grantedSet: string | undefined;
209
209
  method: MethodInfo;
210
- permissionState: string;
211
- permissionType: Type;
212
- permitOnlySetInstance: unknown;
213
- refusedSet: string;
214
- url: string;
215
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
216
- toString(): string;
210
+ permissionState: string | undefined;
211
+ permissionType: Type | undefined;
212
+ permitOnlySetInstance: unknown | undefined;
213
+ refusedSet: string | undefined;
214
+ url: string | undefined;
215
+ getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
216
+ toString(): string | undefined;
217
217
  }
218
218
 
219
219
 
220
220
  export const SecurityException: {
221
- new(): SecurityException$instance;
222
- new(message: string): SecurityException$instance;
223
- new(message: string, inner: Exception): SecurityException$instance;
224
- new(message: string, type_: Type): SecurityException$instance;
225
- new(message: string, type_: Type, state: string): SecurityException$instance;
221
+ new(): SecurityException;
222
+ new(message: string | undefined): SecurityException;
223
+ new(message: string | undefined, inner: Exception | undefined): SecurityException;
224
+ new(message: string | undefined, type_: Type | undefined): SecurityException;
225
+ new(message: string | undefined, type_: Type | undefined, state: string | undefined): SecurityException;
226
226
  };
227
227
 
228
228
 
@@ -240,7 +240,7 @@ export interface SecurityRulesAttribute$instance extends Attribute {
240
240
 
241
241
 
242
242
  export const SecurityRulesAttribute: {
243
- new(ruleSet: SecurityRuleSet): SecurityRulesAttribute$instance;
243
+ new(ruleSet: SecurityRuleSet): SecurityRulesAttribute;
244
244
  };
245
245
 
246
246
 
@@ -251,7 +251,7 @@ export interface SecuritySafeCriticalAttribute$instance extends Attribute {
251
251
 
252
252
 
253
253
  export const SecuritySafeCriticalAttribute: {
254
- new(): SecuritySafeCriticalAttribute$instance;
254
+ new(): SecuritySafeCriticalAttribute;
255
255
  };
256
256
 
257
257
 
@@ -262,7 +262,7 @@ export interface SecurityTransparentAttribute$instance extends Attribute {
262
262
 
263
263
 
264
264
  export const SecurityTransparentAttribute: {
265
- new(): SecurityTransparentAttribute$instance;
265
+ new(): SecurityTransparentAttribute;
266
266
  };
267
267
 
268
268
 
@@ -273,7 +273,7 @@ export interface SecurityTreatAsSafeAttribute$instance extends Attribute {
273
273
 
274
274
 
275
275
  export const SecurityTreatAsSafeAttribute: {
276
- new(): SecurityTreatAsSafeAttribute$instance;
276
+ new(): SecurityTreatAsSafeAttribute;
277
277
  };
278
278
 
279
279
 
@@ -284,7 +284,7 @@ export interface SuppressUnmanagedCodeSecurityAttribute$instance extends Attribu
284
284
 
285
285
 
286
286
  export const SuppressUnmanagedCodeSecurityAttribute: {
287
- new(): SuppressUnmanagedCodeSecurityAttribute$instance;
287
+ new(): SuppressUnmanagedCodeSecurityAttribute;
288
288
  };
289
289
 
290
290
 
@@ -295,7 +295,7 @@ export interface UnverifiableCodeAttribute$instance extends Attribute {
295
295
 
296
296
 
297
297
  export const UnverifiableCodeAttribute: {
298
- new(): UnverifiableCodeAttribute$instance;
298
+ new(): UnverifiableCodeAttribute;
299
299
  };
300
300
 
301
301
 
@@ -307,9 +307,9 @@ export interface VerificationException$instance extends SystemException {
307
307
 
308
308
 
309
309
  export const VerificationException: {
310
- new(): VerificationException$instance;
311
- new(message: string): VerificationException$instance;
312
- new(message: string, innerException: Exception): VerificationException$instance;
310
+ new(): VerificationException;
311
+ new(message: string | undefined): VerificationException;
312
+ new(message: string | undefined, innerException: Exception | undefined): VerificationException;
313
313
  };
314
314
 
315
315