protected override void PostDeserialize()
 {
     if (!base.EvaluationContext.IsMachineLevel && !PartialTrustHelpers.IsInFullTrust())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.Runtime.Serialization.SR.GetString("ConfigDataContractSerializerSectionLoadError")));
     }
 }
 protected override void PostDeserialize()
 {
     // Perf optimization. If the configuration is coming from machine.config
     // It is safe and we don't need to check for permissions.
     if (EvaluationContext.IsMachineLevel)
     {
         return;
     }
     if (!PartialTrustHelpers.IsInFullTrust())
     {
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigDataContractSerializerSectionLoadError)));
     }
 }