void ValidateForParameterMode(MessagePartDescription part)
 {
     if (dataContractSerializerOperationGenerator.isNonNillableReferenceTypes.ContainsKey(part))
     {
         ParameterModeException parameterModeException = new ParameterModeException(SR.GetString(SR.SFxCannotImportAsParameters_ElementIsNotNillable, part.Name, part.Namespace));
         parameterModeException.MessageContractType = MessageContractType.BareMessageContract;
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(parameterModeException);
     }
 }
 private void ValidateForParameterMode(MessagePartDescription part)
 {
     if (this.dataContractSerializerOperationGenerator.isNonNillableReferenceTypes.ContainsKey(part))
     {
         ParameterModeException exception = new ParameterModeException(System.ServiceModel.SR.GetString("SFxCannotImportAsParameters_ElementIsNotNillable", new object[] { part.Name, part.Namespace }))
         {
             MessageContractType = MessageContractType.BareMessageContract
         };
         throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception);
     }
 }