本文整理匯總了C#中System.Delegate.RemoveImpl方法的典型用法代碼示例。如果您正苦於以下問題:C# Delegate.RemoveImpl方法的具體用法?C# Delegate.RemoveImpl怎麽用?C# Delegate.RemoveImpl使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Delegate
的用法示例。
在下文中一共展示了Delegate.RemoveImpl方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Remove
public static Delegate Remove(Delegate source, Delegate value)
{
if (source == null) {
return null;
}
return source.RemoveImpl(value);
}
示例2: Remove
public static Delegate Remove(Delegate source, Delegate value)
{
if (source == null)
return null;
if (value == null)
return source;
if (source.GetType() != value.GetType())
throw new ArgumentException("DlgtTypeMis");
return source.RemoveImpl(value);
}
示例3: Remove
[System.Security.SecuritySafeCritical] // auto-generated
public static Delegate Remove(Delegate source, Delegate value)
{
if (source == null)
return null;
if (value == null)
return source;
if (!InternalEqualTypes(source, value))
throw new ArgumentException(Environment.GetResourceString("Arg_DlgtTypeMis"));
return source.RemoveImpl(value);
}
示例4: Remove
public static Delegate Remove (Delegate source, Delegate value)
{
if (source == null)
return null;
if (value == null)
return source;
if (source.GetType () != value.GetType ())
throw new ArgumentException (Locale.GetText ("Incompatible Delegate Types. First is {0} second is {1}.", source.GetType ().FullName, value.GetType ().FullName));
return source.RemoveImpl (value);
}
示例5: Remove
public static Delegate Remove(Delegate source, Delegate value)
{
if (source == null)
return null;
if (value == null)
return source;
if (!InternalEqualTypes(source, value))
throw new ArgumentException("The types of 'source' and 'value' should match.");
return source.RemoveImpl(value);
}