protected Exception CreateCtorHasSecurityException(string typeName) { return new InvalidOperationException(SR.Format(SR.XmlConstructorHasSecurityAttributes, typeName)); }