本文整理汇总了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);
}
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}