static private ThrowIfNotNull ( object obj, string name ) : void | ||
obj | object | |
name | string | |
Результат | void |
static void ThrowIfNotNull(object obj, string name)
{
if (obj != null)
{
throw new InvalidOperationException("The " + name + " has been already initialized for this link.");
}
}