C# Класс csscript.Settings

Settings is an class that holds CS-Script application settings.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
InitDefaultRefAssemblies string

Открытые методы

Метод Описание
AddSearchDir ( string dir ) : void

Add search directory to the search (probing) path Settings.SearchDirs. For example if Settings.SearchDirs = "c:\scripts" then after call Settings.AddSearchDir("c:\temp") Settings.SearchDirs is "c:\scripts;c:\temp"

ExpandCleanupShellCommand ( ) : string

Returns value of the CleanupShellCommand (with expanding environment variables).

ExpandDefaultRefAssemblies ( ) : string

Returns value of the DefaultRefAssemblies (with expanding environment variables).

ExpandUseAlternativeCompiler ( ) : string

Returns value of the UseAlternativeCompiler (with expanding environment variables).

ExpandUsePostProcessor ( ) : string

Returns value of the UsePostProcessor (with expanding environment variables).

Load ( string fileName ) : Settings

Loads CS-Script application settings from a file. Default settings object is returned if it cannot be loaded from the file.

Load ( string fileName, bool createAlways ) : Settings

Loads CS-Script application settings from a file.

Save ( string fileName ) : void

Saves CS-Script application settings to a file (.dat).

Приватные методы

Метод Описание
InitDefaultRefAssemblies ( ) : string

Описание методов

AddSearchDir() публичный Метод

Add search directory to the search (probing) path Settings.SearchDirs. For example if Settings.SearchDirs = "c:\scripts" then after call Settings.AddSearchDir("c:\temp") Settings.SearchDirs is "c:\scripts;c:\temp"
public AddSearchDir ( string dir ) : void
dir string Directory path.
Результат void

ExpandCleanupShellCommand() публичный Метод

Returns value of the CleanupShellCommand (with expanding environment variables).
public ExpandCleanupShellCommand ( ) : string
Результат string

ExpandDefaultRefAssemblies() публичный Метод

Returns value of the DefaultRefAssemblies (with expanding environment variables).
public ExpandDefaultRefAssemblies ( ) : string
Результат string

ExpandUseAlternativeCompiler() публичный Метод

Returns value of the UseAlternativeCompiler (with expanding environment variables).
public ExpandUseAlternativeCompiler ( ) : string
Результат string

ExpandUsePostProcessor() публичный Метод

Returns value of the UsePostProcessor (with expanding environment variables).
public ExpandUsePostProcessor ( ) : string
Результат string

Load() публичный статический Метод

Loads CS-Script application settings from a file. Default settings object is returned if it cannot be loaded from the file.
public static Load ( string fileName ) : Settings
fileName string File name of the XML file
Результат Settings

Load() публичный статический Метод

Loads CS-Script application settings from a file.
public static Load ( string fileName, bool createAlways ) : Settings
fileName string File name of the XML file
createAlways bool Create and return default settings object if it cannot be loaded from the file.
Результат Settings

Save() публичный Метод

Saves CS-Script application settings to a file (.dat).
public Save ( string fileName ) : void
fileName string File name of the .dat file
Результат void