当前位置: 首页>>代码示例>>C#>>正文


C# Method.Equals方法代码示例

本文整理汇总了C#中Method.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# Method.Equals方法的具体用法?C# Method.Equals怎么用?C# Method.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Method的用法示例。


在下文中一共展示了Method.Equals方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HttpHelper

        /// <summary>
        /// 생성자
        /// </summary>
        /// <param name="requestUrl">Request URL</param>
        /// <param name="method">메소드</param>
        /// <param name="postValues">파라미터 값들</param>
        public HttpHelper(Uri requestUri, Method method, params KeyValuePair<string, string>[] postValues)
        {
            // Request 객체 초기화
            this.Request = (HttpWebRequest)WebRequest.Create(requestUri);
            this.Request.ContentType = "application/x-www-form-urlencoded";
            this.Request.Method = method.Equals(Method.Post) ? "POST" : "GET";

            // 파라미터가 존재할 경우 넣어준다.
            if (postValues.Length > 0)
            {
                this.PostValues = new Dictionary<string, string>();
                foreach (var item in postValues)
                {
                    this.PostValues.Add(item.Key, item.Value);
                }
            }
        }
开发者ID:vapps,项目名称:HDStream,代码行数:23,代码来源:HTTPHelper.cs

示例2: GetArgumentTreatment

            public override PexArgumentTracking GetArgumentTreatment(PexTrackingThread thread, int frameId,
                Method method)
            {
                Dump("in GetArgumentTreatment=====================");
                Dump("thread.ThreadId: " + thread.ThreadId + " frameid: " + frameId + " method: " + method);

                if (trackArg && methodForTrackingArg != null && method.Equals(methodForTrackingArg))
                {
                    trackArg = false;
                    methodForTrackingArg = null;
                    Dump("track parameters of " + method);
                    Dump("end GetArgumentTreatment=====================");
                    Dump("");
                    return PexArgumentTracking.Track;
                }

                Dump("end GetArgumentTreatment=====================");
                Dump("");
                return PexArgumentTracking.Derived;
            }
开发者ID:spati2,项目名称:ICSE-2011-Covana,代码行数:20,代码来源:ResultTracingObserver.cs

示例3: IsUnPackMethod

 internal bool IsUnPackMethod(Method callee)
 {
     bool res = callee.Equals(PackMethod);
     res = res || callee.Name.Name.Equals("StartWritingAtTransitively");
     res = res || callee.Name.Name.Equals("StartWritingAtNop");
     return res;
 }
开发者ID:hesam,项目名称:SketchSharp,代码行数:7,代码来源:ObjectConsistencyAnalysis.cs

示例4: IsPackMethod

 internal bool IsPackMethod(Method callee)
 {
     bool res = callee.Equals(UnpackMethod);
     res = res || callee.Name.Name.Equals("EndWritingAtTransitively");
     res = res || callee.Name.Name.Equals("EndWritingAtNop");
     return res;
 }
开发者ID:hesam,项目名称:SketchSharp,代码行数:7,代码来源:ObjectConsistencyAnalysis.cs

示例5: IsMatchingConsistentMethod

        private bool IsMatchingConsistentMethod(Method callee)
        {
            bool res = false;
            res = res || callee.Equals(IsConsistenMethod);
            res = res || callee.Equals(FramesConsistenMethod);
            // For some reason SystemTypes.Guard fails to bring GetMethod(Identifier.For("FrameIsExposable"))
            res = res || IsFrameConsistentMethod(callee);
            return res;

        }
开发者ID:hesam,项目名称:SketchSharp,代码行数:10,代码来源:ObjectConsistencyAnalysis.cs


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