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