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