C# 클래스 DSShared.PathInfo

Class to help pass around file paths
파일 보기 프로젝트 열기: pmprog/OpenXCOM.Tools 1 사용 예제들

공개 메소드들

메소드 설명
EnsureDirectoryExists ( ) : void

Calling this will create the directory if it does not exist

Exists ( ) : bool

First checks if the directory exists, than checks if file exists

PathInfo ( string fullPath ) : System

Initializes a new instance of the T:PathInfo class.

PathInfo ( string fullPath, bool parseFile ) : System

Initializes a new instance of the T:PathInfo class.

PathInfo ( string path, string file, string ext ) : System

Initializes a new instance of the T:PathInfo class.

ToString ( ) : string

Returns a that represents the current .

ToStringExt ( string newExt ) : string

String representation of this path, with the supplied extension added on instead of the one this object was constructed with

메소드 상세

EnsureDirectoryExists() 공개 메소드

Calling this will create the directory if it does not exist
public EnsureDirectoryExists ( ) : void
리턴 void

Exists() 공개 메소드

First checks if the directory exists, than checks if file exists
public Exists ( ) : bool
리턴 bool

PathInfo() 공개 메소드

Initializes a new instance of the T:PathInfo class.
public PathInfo ( string fullPath ) : System
fullPath string The full path.
리턴 System

PathInfo() 공개 메소드

Initializes a new instance of the T:PathInfo class.
public PathInfo ( string fullPath, bool parseFile ) : System
fullPath string The full path.
parseFile bool if set to true the path will be broken down into filename and extension parts. You should pass false if the path string does not describe a file location
리턴 System

PathInfo() 공개 메소드

Initializes a new instance of the T:PathInfo class.
public PathInfo ( string path, string file, string ext ) : System
path string The path.
file string The file.
ext string The ext.
리턴 System

ToString() 공개 메소드

Returns a that represents the current .
public ToString ( ) : string
리턴 string

ToStringExt() 공개 메소드

String representation of this path, with the supplied extension added on instead of the one this object was constructed with
public ToStringExt ( string newExt ) : string
newExt string The extension that will replace the one in Ext
리턴 string