本文整理汇总了C#中Storage.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Storage.ToString方法的具体用法?C# Storage.ToString怎么用?C# Storage.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Storage
的用法示例。
在下文中一共展示了Storage.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetDirectoryNodeFromStorage
public DirectoryNode GetDirectoryNodeFromStorage(Storage storage)
{
try
{
var st = storage.References[0];
//st.
var eee = storage.References.Clone();
}
catch (Exception)
{
}
return new DirectoryNode(storage.ToString())
{
_audiofile = storage.isAudioFile(),
_canplay = storage.isPlayable(),
_datafile = storage.isDataFile(),
_defaultlocation = storage.isDefault(),
_folder = storage.isFolder(),
_hidden = storage.isHidden(),
_link = storage.isLink(),
_system = storage.isSystem(),
_virtualfile = storage.isVirtual()
};
}
示例2: LangCharacteristic
public LangCharacteristic(Storage.Languages language)
{
string targetFolder = Storage.ConfPath + language.ToString() + "/";
UniqueWords = File.ReadAllText(targetFolder + Storage.UniqueFile).Split(' ');
Dictionary = File.ReadAllText(targetFolder + Storage.DictionaryFile).Split(' ');
SortedDictionary = ExtensionMethods.Dictionary.Create(Dictionary, x => x.Length);
XmlDocument lang = new XmlDocument();
lang.Load(targetFolder + Storage.FrequencyFile);
Letters = GetOccurrance(lang.SelectNodes("//letters/info"));
Bigrams = GetOccurrance(lang.SelectNodes("//bigrams/info"));
Trigrams = GetOccurrance(lang.SelectNodes("//trigrams/info"));
StartLetters = GetOccurrance(lang.SelectNodes("//startLetters/info"));
EndLetters = GetOccurrance(lang.SelectNodes("//endLetters/info"));
NextLetters = GetOccurrance(lang.SelectNodes("//nextLetters/info"));
PrevLetters = GetOccurrance(lang.SelectNodes("//prevLetters/info"));
}