C# Class Castle.Facilities.NHibernateIntegration.Internal.FileAssemblyResource

Resource for a file or an assembly resource
Inheritance: IResource
ファイルを表示 Open project: hconceicao/Castle.Facilities.NHibernateIntegration3 Class Usage Examples

Public Methods

Method Description
CreateRelative ( string relativePath ) : IResource

Returns an instance of Castle.Core.Resource.IResource created according to the relativePath using itself as the root.

Dispose ( ) : void

Disposes the allocated resources

FileAssemblyResource ( string resource ) : System.IO

Depending on the resource type, AssemblyResource or FileResource is decorated.

GetStreamReader ( ) : TextReader

Returns a reader for the stream

GetStreamReader ( Encoding encoding ) : TextReader

Returns a reader for the stream

Method Details

CreateRelative() public method

Returns an instance of Castle.Core.Resource.IResource created according to the relativePath using itself as the root.
public CreateRelative ( string relativePath ) : IResource
relativePath string
return IResource

Dispose() public method

Disposes the allocated resources
public Dispose ( ) : void
return void

FileAssemblyResource() public method

Depending on the resource type, AssemblyResource or FileResource is decorated.
public FileAssemblyResource ( string resource ) : System.IO
resource string
return System.IO

GetStreamReader() public method

Returns a reader for the stream
public GetStreamReader ( ) : TextReader
return TextReader

GetStreamReader() public method

Returns a reader for the stream
public GetStreamReader ( Encoding encoding ) : TextReader
encoding System.Text.Encoding
return TextReader