C# 클래스 Innovatian.Configuration.IniConfigurationSource

상속: AbstractFileConfigurationSource
파일 보기 프로젝트 열기: idavis/innovatian.configuration 1 사용 예제들

공개 메소드들

메소드 설명
FromFile ( string fileName ) : IConfigurationSource

Creates a new IConfigurationSource instance from the file specified.

IniConfigurationSource ( ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( FileInfo fileInfo ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( FileInfo fileInfo, bool singleLineComments ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( FileInfo fileInfo, string comment, string delimiter ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( FileInfo fileInfo, string comment, string delimiter, bool singleLineComments ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( string data ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( string data, bool singleLineComments ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( string data, string comment, string delimiter ) : System

Initializes a new instance of the IniConfigurationSource class.

IniConfigurationSource ( string data, string comment, string delimiter, bool singleLineComments ) : System

Initializes a new instance of the IniConfigurationSource class.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

보호된 메소드들

메소드 설명
Load ( string fileName ) : void

Loads the current instance from the given file.

비공개 메소드들

메소드 설명
GetFileSections ( string data ) : List
GetSection ( string sectionData ) : IConfigurationSection
GetSection ( IConfigurationSection section ) : string
GetSections ( IEnumerable sectionData ) : IEnumerable
GetSections ( ) : IEnumerable
Parse ( string data ) : void
ReadFile ( string fileName ) : string

메소드 상세

FromFile() 공개 정적인 메소드

Creates a new IConfigurationSource instance from the file specified.
public static FromFile ( string fileName ) : IConfigurationSource
fileName string /// The file to load. ///
리턴 IConfigurationSource

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( ) : System
리턴 System

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( FileInfo fileInfo ) : System
fileInfo System.IO.FileInfo The file to load.
리턴 System

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( FileInfo fileInfo, bool singleLineComments ) : System
fileInfo System.IO.FileInfo The file to load.
singleLineComments bool Whether comments must appear on a line of their own
리턴 System

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( FileInfo fileInfo, string comment, string delimiter ) : System
fileInfo System.IO.FileInfo The file to load.
comment string The string denoting the start of a comment
delimiter string The string denoting the key/value delimiter
리턴 System

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( FileInfo fileInfo, string comment, string delimiter, bool singleLineComments ) : System
fileInfo System.IO.FileInfo The file to load.
comment string The string denoting the start of a comment
delimiter string The string denoting the key/value delimiter
singleLineComments bool Whether comments must appear on a line of their own
리턴 System

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( string data ) : System
data string The data.
리턴 System

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( string data, bool singleLineComments ) : System
data string The data.
singleLineComments bool Whether comments must appear on a line of their own
리턴 System

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( string data, string comment, string delimiter ) : System
data string The data.
comment string The string denoting the start of a comment
delimiter string The string denoting the key/value delimiter
리턴 System

IniConfigurationSource() 공개 메소드

Initializes a new instance of the IniConfigurationSource class.
public IniConfigurationSource ( string data, string comment, string delimiter, bool singleLineComments ) : System
data string The data.
comment string The string denoting the start of a comment
delimiter string The string denoting the key/value delimiter
singleLineComments bool Whether comments must appear on a line of their own
리턴 System

Load() 보호된 메소드

Loads the current instance from the given file.
protected Load ( string fileName ) : void
fileName string The name of the file to load into this instance.
리턴 void

ToString() 공개 메소드

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
리턴 string