本文整理汇总了C#中BlamVersion.UsesStringIds方法的典型用法代码示例。如果您正苦于以下问题:C# BlamVersion.UsesStringIds方法的具体用法?C# BlamVersion.UsesStringIds怎么用?C# BlamVersion.UsesStringIds使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlamVersion
的用法示例。
在下文中一共展示了BlamVersion.UsesStringIds方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TagIndex
/// <summary>
/// Create a new tag index
/// </summary>
/// <param name="version">Engine version for the tags</param>
/// <param name="dir">Base directory for the tags</param>
/// <param name="tag_dir">Name of the tags folder</param>
/// <param name="create">Create the directory if it doesn't exist on disk</param>
/// <remarks>"<paramref name="tag_dir"/>\" gets appended to <paramref name="dir"/>'s path.
///
/// If <paramref name="create"/> is false and full tags path doesn't exist on disk, this will create it
/// </remarks>
public TagIndex(BlamVersion version, string dir, string tag_dir, bool create) : base()
{
engine = version;
directory = System.IO.Path.Combine(dir, tag_dir);
if (!directory.EndsWith("\\")) directory = directory + "\\";
if (!System.IO.Directory.Exists(directory))
{
if (create) System.IO.Directory.CreateDirectory(directory);
else throw new System.IO.DirectoryNotFoundException(directory);
}
base.ArrayInitialize(kDefaultArrayName);
refManager = new ReferenceManager(version, string.Format("[TagIndex {0}]", directory), false);
if (engine.UsesStringIds())
StringTableInitialize();
}