C# Class System.Resources.ResourceWriter

Inheritance: IResourceWriter
显示文件 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
AddResource ( string name, Stream value ) : void
AddResource ( string name, Stream value, bool closeAfterWrite ) : void
AddResource ( string name, System value ) : void
AddResource ( string name, System value, bool closeAfterWrite ) : void
AddResource ( string name, byte value ) : void
AddResource ( string name, object value ) : void
AddResource ( string name, string value ) : void
AddResourceData ( string name, string typeName, byte serializedData ) : void
Close ( ) : void
Dispose ( ) : void
Generate ( ) : void
ResourceWriter ( System stream )
ResourceWriter ( string fileName )
ResourceWriter ( Stream stream ) : System
ResourceWriter ( string fileName ) : System

Private Methods

Method Description
AddResourceInternal ( string name, Stream value, bool closeAfterWrite ) : void
Dispose ( bool disposing ) : void
FindTypeCode ( object value, List types ) : ResourceTypeCode
Write7BitEncodedInt ( BinaryWriter store, int value ) : void
WriteValue ( ResourceTypeCode typeCode, object value, BinaryWriter writer ) : void

Method Details

AddResource() public method

public AddResource ( string name, Stream value ) : void
name string
value Stream
return void

AddResource() public method

public AddResource ( string name, Stream value, bool closeAfterWrite ) : void
name string
value Stream
closeAfterWrite bool
return void

AddResource() public method

public AddResource ( string name, System value ) : void
name string
value System
return void

AddResource() public method

public AddResource ( string name, System value, bool closeAfterWrite ) : void
name string
value System
closeAfterWrite bool
return void

AddResource() public method

public AddResource ( string name, byte value ) : void
name string
value byte
return void

AddResource() public method

public AddResource ( string name, object value ) : void
name string
value object
return void

AddResource() public method

public AddResource ( string name, string value ) : void
name string
value string
return void

AddResourceData() public method

public AddResourceData ( string name, string typeName, byte serializedData ) : void
name string
typeName string
serializedData byte
return void

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Generate() public method

public Generate ( ) : void
return void

ResourceWriter() public method

public ResourceWriter ( System stream )
stream System

ResourceWriter() public method

public ResourceWriter ( string fileName )
fileName string

ResourceWriter() public method

public ResourceWriter ( Stream stream ) : System
stream Stream
return System

ResourceWriter() public method

public ResourceWriter ( string fileName ) : System
fileName string
return System