本文整理汇总了C#中FileEntry.GetHashCode方法的典型用法代码示例。如果您正苦于以下问题:C# FileEntry.GetHashCode方法的具体用法?C# FileEntry.GetHashCode怎么用?C# FileEntry.GetHashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileEntry
的用法示例。
在下文中一共展示了FileEntry.GetHashCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExcludeFile
public void ExcludeFile(FileEntry file)
{
// TODO: check for directory
ItsIncludedFileEntriesDict.Remove(file.GetHashCode());
ItsExcludedFileEntries.Add(file);
ItsNewFileEntries.Remove(file);
// TODO: update xml
RaiseRegistryUpdateEvent();
ItsInstallerProjectManagementService.RemoveFile(file.FullPath);
}
示例2: BakeMetadataAvailableEventHandler
private void BakeMetadataAvailableEventHandler(object sender, SingleEventArgs<BakeMetadata> e)
{
_bakeMetadata = e.ItsValue;
if (_bakeMetadata == null)
return;
var comp = _bakeMetadata.ItsMainExecutableComponent;
foreach (var file in comp.ItsBakeFiles)
{
var p1 = ItsInstallerProjectManagementService.ItsInstallerProjectInfo.ItsProjectPaths.ItsRootPath;
var fileinfo = new FileInfo(Path.Combine(p1, file.ItsSource));
var fileEntry = new FileEntry
{
DisplayTitle = Path.GetFileName(file.ItsSource),
FullPath = file.ItsSource,
SizeInfo = new StorageSizeInfo(fileinfo.Length)
};
ItsIncludedFileEntriesDict.Add(fileEntry.GetHashCode(), fileEntry);
}
RaiseRegistryUpdateEvent();
}