• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# HashCodeCombiner类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中HashCodeCombiner的典型用法代码示例。如果您正苦于以下问题:C# HashCodeCombiner类的具体用法?C# HashCodeCombiner怎么用?C# HashCodeCombiner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HashCodeCombiner类属于命名空间,在下文中一共展示了HashCodeCombiner类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddToHashCodeCombiner

 internal override void AddToHashCodeCombiner(HashCodeCombiner combiner)
 {
     base.AddToHashCodeCombiner(combiner);
     combiner.AddEnumerable(this.Arguments);
     combiner.AddObject(this.Method);
     combiner.AddFingerprint(this.Target);
 }
开发者ID:StevePotter,项目名称:ArmChair,代码行数:7,代码来源:MethodCallExpressionFingerprint.cs


示例2: AddToHashCodeCombiner

        internal override void AddToHashCodeCombiner(HashCodeCombiner combiner) {
            base.AddToHashCodeCombiner(combiner);

            combiner.AddFingerprint(Test);
            combiner.AddFingerprint(IfTrue);
            combiner.AddFingerprint(IfFalse);
        }
开发者ID:nobled,项目名称:mono,代码行数:7,代码来源:ConditionalExpressionFingerprint.cs


示例3: AddToHashCodeCombiner

        public override void AddToHashCodeCombiner(HashCodeCombiner combiner)
        {
            base.AddToHashCodeCombiner(combiner);

            combiner.AddObject(Method);
            combiner.AddFingerprint(Operand);
        }
开发者ID:radischevo,项目名称:Radischevo.Wahha,代码行数:7,代码来源:UnaryExpressionFingerprint.cs


示例4: AddToHashCodeCombiner

        public override void AddToHashCodeCombiner(HashCodeCombiner combiner)
        {
            base.AddToHashCodeCombiner(combiner);

            combiner.AddObject(Member);
            combiner.AddFingerprint(Target);
        }
开发者ID:radischevo,项目名称:Radischevo.Wahha,代码行数:7,代码来源:MemberExpressionFingerprint.cs


示例5: GetHashCode

 public override int GetHashCode()
 {
     var combiner = new HashCodeCombiner();
     combiner.AddObject(Id);
     combiner.AddObject(Version);
     return combiner.CombinedHash;
 }
开发者ID:monoman,项目名称:NugetCracker,代码行数:7,代码来源:PackageReference.cs


示例6: GetHashCode

 public override int GetHashCode()
 {
     HashCodeCombiner combiner = new HashCodeCombiner();
     combiner.AddObject(SourcePath);
     combiner.AddObject(TargetPath);
     return combiner.CombinedHash;
 }
开发者ID:jacksonh,项目名称:nuget,代码行数:7,代码来源:PhysicalPackageFile.cs


示例7: AddToHashCodeCombiner

        public override void AddToHashCodeCombiner(HashCodeCombiner combiner)
        {
            base.AddToHashCodeCombiner(combiner);

            combiner.AddEnumerable(Arguments);
            combiner.AddObject(Method);
            combiner.AddFingerprint(Target);
        }
开发者ID:radischevo,项目名称:Radischevo.Wahha,代码行数:8,代码来源:MethodCallExpressionFingerprint.cs


示例8: CalculateProfilePropertySettingsHash

 private void CalculateProfilePropertySettingsHash(ProfilePropertySettingsCollection settings, HashCodeCombiner hashCombiner)
 {
     foreach (ProfilePropertySettings settings2 in settings)
     {
         hashCombiner.AddObject(settings2.Name);
         hashCombiner.AddObject(settings2.Type);
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:8,代码来源:ProfileSection.cs


示例9: ComputeHashCode

 protected override void ComputeHashCode(HashCodeCombiner hashCodeCombiner)
 {
     base.ComputeHashCode(hashCodeCombiner);
     CompilationSection compilationConfig = MTConfigUtil.GetCompilationConfig(base.VirtualPath);
     hashCodeCombiner.AddObject(compilationConfig.RecompilationHash);
     PagesSection pagesConfig = MTConfigUtil.GetPagesConfig(base.VirtualPath);
     hashCodeCombiner.AddObject(Util.GetRecompilationHash(pagesConfig));
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:8,代码来源:BuildResultCodeCompileUnit.cs


示例10: AddToHashCodeCombiner

        public override void AddToHashCodeCombiner(HashCodeCombiner combiner)
        {
            base.AddToHashCodeCombiner(combiner);

            combiner.AddFingerprint(_test);
            combiner.AddFingerprint(_ifTrue);
            combiner.AddFingerprint(_ifFalse);
        }
开发者ID:radischevo,项目名称:Radischevo.Wahha,代码行数:8,代码来源:ConditionalExpressionFingerprint.cs


示例11: AddToHashCodeCombiner

        internal override void AddToHashCodeCombiner(HashCodeCombiner combiner) {
            base.AddToHashCodeCombiner(combiner);

            combiner.AddInt32(IsLiftedToNull.GetHashCode());
            combiner.AddFingerprint(Left);
            combiner.AddObject(Method);
            combiner.AddFingerprint(Right);
        }
开发者ID:nobled,项目名称:mono,代码行数:8,代码来源:BinaryExpressionFingerprint.cs


示例12: GetHashCode

 public override int GetHashCode()
 {
     HashCodeCombiner combiner = new HashCodeCombiner();
     combiner.AddObject(this._varyByCustom);
     combiner.AddArray(this._varyByParams);
     combiner.AddArray(this._varyByControls);
     return combiner.CombinedHash32;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:8,代码来源:ControlCachedVary.cs


示例13: ComputeSourceDependenciesHashCode

 internal override string ComputeSourceDependenciesHashCode(VirtualPath virtualPath)
 {
     if (virtualPath == null)
     {
         virtualPath = base.VirtualPath;
     }
     HashCodeCombiner combiner = new HashCodeCombiner();
     combiner.AddResourcesDirectory(virtualPath.MapPathInternal());
     return combiner.CombinedHashString;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:10,代码来源:BuildResultResourceAssembly.cs


示例14: GetHashCode

 public override int GetHashCode()
 {
     HashCodeCombiner combiner = new HashCodeCombiner();
     combiner.AddObject(this._varyByAllParams);
     combiner.AddObject(this._varyByCustom);
     combiner.AddArray(this._contentEncodings);
     combiner.AddArray(this._headers);
     combiner.AddArray(this._params);
     return combiner.CombinedHash32;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:10,代码来源:CachedVary.cs


示例15: ComputeNonVaryCacheKey

 private string ComputeNonVaryCacheKey(HashCodeCombiner combinedHashCode)
 {
     combinedHashCode.AddObject(this._guid);
     HttpBrowserCapabilities browser = this.Context.Request.Browser;
     if (browser != null)
     {
         combinedHashCode.AddObject(browser.TagWriter);
     }
     return ("l" + combinedHashCode.CombinedHashString);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:10,代码来源:BasePartialCachingControl.cs


示例16: HashCodeCombiner

 int IEqualityComparer.GetHashCode(object obj)
 {
     byte[] buffer = (byte[]) obj;
     HashCodeCombiner combiner = new HashCodeCombiner();
     foreach (byte num in buffer)
     {
         combiner.AddObject(num);
     }
     return combiner.CombinedHash32;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:10,代码来源:FileSecurity.cs


示例17: GetHashCode

 public override int GetHashCode()
 {
     HashCodeCombiner combiner = new HashCodeCombiner();
     foreach (DictionaryEntry entry in this._bag)
     {
         combiner.AddObject(entry.Key);
         combiner.AddObject(entry.Value);
     }
     return combiner.CombinedHash32;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:10,代码来源:AttributeCollection.cs


示例18: GetHashCode

        /// <summary>
        /// Create a unique hash code for the given set of items
        /// </summary>
        internal static int GetHashCode(params object[] objects)
        {
            HashCodeCombiner combiner = new HashCodeCombiner();

            foreach (object obj in objects)
            {
                combiner.AddObject(obj);
            }

            return combiner.CombinedHash;
        }
开发者ID:Microshaoft,项目名称:Microshaoft.Common.Utilities.Net.4x,代码行数:14,代码来源:HashCodeCombiner.cs


示例19: GetHashCode

        /// <summary>
        /// Create a unique hash code for the given set of items
        /// </summary>
        public static int GetHashCode(params object[] objects)
        {
            var combiner = new HashCodeCombiner();

            foreach (var obj in objects)
            {
                combiner.AddObject(obj);
            }

            return combiner.CombinedHash;
        }
开发者ID:OctopusDeploy,项目名称:Octo.exe,代码行数:14,代码来源:HashCodeCombiner.cs


示例20: ComputeHashCode

 protected override void ComputeHashCode(HashCodeCombiner hashCodeCombiner)
 {
     base.ComputeHashCode(hashCodeCombiner);
     if (base.VirtualPath != null)
     {
         Assembly localResourcesAssembly = BuildManager.GetLocalResourcesAssembly(base.VirtualPath.Parent);
         if (localResourcesAssembly != null)
         {
             hashCodeCombiner.AddFile(localResourcesAssembly.Location);
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:12,代码来源:BuildResultCompiledType.cs



注:本文中的HashCodeCombiner类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# HashListMemTable类代码示例发布时间:2022-05-24
下一篇:
C# HashAlgorithmTag类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap