System.Resources.Extensions Adds a resource of specified type represented by a string value. If the type is a primitive type, the value will be converted using TypeConverter by the writer to that primitive type and stored in the resources in binary format. If the type is not a primitive type, the string value will be stored in the resources as a string and converted with a TypeConverter for the type when reading the resource. This is done to avoid activating arbitrary types during resource writing. Resource name Value of the resource in string form understood by the type's TypeConverter Assembly qualified type name of the resource Adds a resource of specified type represented by a byte[] value which will be passed to the type's TypeConverter when reading the resource. Resource name Value of the resource in byte[] form understood by the type's TypeConverter Assembly qualified type name of the resource Adds a resource of specified type represented by a byte[] value which will be passed to BinaryFormatter when reading the resource. Resource name Value of the resource in byte[] form understood by BinaryFormatter Assembly qualified type name of the resource Adds a resource of specified type represented by a Stream value which will be passed to the type's constructor when reading the resource. Resource name Value of the resource in Stream form understood by the types constructor Assembly qualified type name of the resource Indicates that the stream should be closed after resources have been written Compares type names as strings, ignoring version. When type names are missing, mscorlib is assumed. This comparer is not meant to capture all scenarios (eg: TypeForwards) but is meant to serve as a best effort, avoiding false positives, in the absence of real type metadata. Indicates that the specified method requires dynamic access to code that is not referenced statically, for example through . This allows tools to understand which methods are unsafe to call when removing unreferenced code from an application. Initializes a new instance of the class with the specified message. A message that contains information about the usage of unreferenced code. Gets a message that contains information about the usage of unreferenced code. Gets or sets an optional URL that contains more information about the method, why it requires unreferenced code, and what options a consumer has to deal with it. Suppresses reporting of a specific rule violation, allowing multiple suppressions on a single code artifact. is different than in that it doesn't have a . So it is always preserved in the compiled assembly. Initializes a new instance of the class, specifying the category of the tool and the identifier for an analysis rule. The category for the attribute. The identifier of the analysis rule the attribute applies to. Gets the category identifying the classification of the attribute. The property describes the tool or tool analysis category for which a message suppression attribute applies. Gets the identifier of the analysis tool rule to be suppressed. Concatenated together, the and properties form a unique check identifier. Gets or sets the scope of the code that is relevant for the attribute. The Scope property is an optional argument that specifies the metadata scope for which the attribute is relevant. Gets or sets a fully qualified path that represents the target of the attribute. The property is an optional argument identifying the analysis target of the attribute. An example value is "System.IO.Stream.ctor():System.Void". Because it is fully qualified, it can be long, particularly for targets such as parameters. The analysis tool user interface should be capable of automatically formatting the parameter. Gets or sets an optional argument expanding on exclusion criteria. The property is an optional argument that specifies additional exclusion where the literal metadata target is not sufficiently precise. For example, the cannot be applied within a method, and it may be desirable to suppress a violation against a statement in the method that will give a rule violation, but not against all statements in the method. Gets or sets the justification for suppressing the code analysis message. Specifies that null is allowed as an input even if the corresponding type disallows it. Specifies that null is disallowed as an input even if the corresponding type allows it. Specifies that an output may be null even if the corresponding type disallows it. Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns. Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it. Initializes the attribute with the specified return value condition. The return value condition. If the method returns this value, the associated parameter may be null. Gets the return value condition. Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. Initializes the attribute with the specified return value condition. The return value condition. If the method returns this value, the associated parameter will not be null. Gets the return value condition. Specifies that the output will be non-null if the named parameter is non-null. Initializes the attribute with the associated parameter name. The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null. Gets the associated parameter name. Applied to a method that will never return under any circumstance. Specifies that the method will not return if the associated Boolean parameter is passed the specified value. Initializes the attribute with the specified parameter value. The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to the associated parameter matches this value. Gets the condition parameter value. Specifies that the method or property will ensure that the listed field and property members have not-null values. Initializes the attribute with a field or property member. The field or property member that is promised to be not-null. Initializes the attribute with the list of field and property members. The list of field and property members that are promised to be not-null. Gets field or property member names. Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition. Initializes the attribute with the specified return value condition and a field or property member. The return value condition. If the method returns this value, the associated parameter will not be null. The field or property member that is promised to be not-null. Initializes the attribute with the specified return value condition and list of field and property members. The return value condition. If the method returns this value, the associated parameter will not be null. The list of field and property members that are promised to be not-null. Gets the return value condition. Gets field or property member names. Stream length must be non-negative and less than 2^31 - 1 - origin. Stream was not readable Stream was not writable. The ResourceReader class does not know how to read this version of .resources files. Expected version: {0} This file: {1} Corrupt .resources file. The specified type doesn't exist. Corrupt .resources file. String length must be non-negative. Corrupt .resources file. The specified data length '{0}' is not a valid position in the stream. Corrupt .resources file. A resource name extends past the end of the stream. Corrupt .resources file. The resource name for name index {0} extends past the end of the stream. Corrupt .resources file. Invalid offset '{0}' into data section. Corrupt .resources file. Unable to read resources from this file because of invalid header information. Try regenerating the .resources file. Corrupt .resources file. String for name index '{0}' extends past the end of the file. Corrupt .resources file. Invalid offset '{0}' into name section. Corrupt .resources file. Resource name extends past the end of the file. The type serialized in the .resources file was not the same type that the .resources file said it contained. Expected '{0}' but read '{1}'. Corrupt .resources file. The specified type doesn't match the available data in the stream. Too many bytes in what should have been a 7 bit encoded Int32. Enumeration already finished. Enumeration has not started. Call MoveNext. Resource was of type '{0}' instead of String - call GetObject instead. The resource writer has already been closed and cannot be edited. This platform does not support binary serialized resources. Cannot read resources that depend on serialization. Stream does not support seeking. This .resources file should not be read with this reader. The resource reader type is "{0}". Cannot access a closed resource set. Use of ResourceManager for custom types is disabled. Set the MSBuild Property CustomResourceTypesSupport to true in order to enable it. ResourceReader is closed. Stream is not a valid resource file. Could not load a converter for type {0}. Attribute used to indicate a source generator should create a function for marshalling arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time. This attribute is meaningless if the source generator associated with it is not enabled. The current built-in source generator only supports C# and only supplies an implementation when applied to static, partial, non-generic methods. Initializes a new instance of the . Name of the library containing the import. Gets the name of the library containing the import. Gets or sets the name of the entry point to be called. Gets or sets how to marshal string arguments to the method. If this field is set to a value other than , must not be specified. Gets or sets the used to control how string arguments to the method are marshalled. If this field is specified, must not be specified or must be set to . Gets or sets whether the callee sets an error (SetLastError on Windows or errno on other platforms) before returning from the attributed method. Specifies how strings should be marshalled for generated p/invokes Indicates the user is suppling a specific marshaller in . Use the platform-provided UTF-8 marshaller. Use the platform-provided UTF-16 marshaller.