Amqp.Listener.ListenerLink.ThrowIfNotNull C# (CSharp) Method

ThrowIfNotNull() static private method

static private ThrowIfNotNull ( object obj, string name ) : void
obj object
name string
return void
        static void ThrowIfNotNull(object obj, string name)
        {
            if (obj != null)
            {
                throw new InvalidOperationException("The " + name + " has been already initialized for this link.");
            }
        }