internal static ChannelBinding CreateCopy(ChannelBinding source)
 {
     if (source.IsInvalid || source.IsClosed)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(source.GetType().FullName));
     }
     if (source.Size <= 0)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("source.Size", source.Size, System.ServiceModel.SR.GetString("ValueMustBePositive")));
     }
     ChannelBindingUtility.DuplicatedChannelBinding binding = new ChannelBindingUtility.DuplicatedChannelBinding();
     binding.Initialize(source);
     return(binding);
 }
 internal static ChannelBinding CreateCopy(ChannelBinding source)
 {
     if (source.IsInvalid || source.IsClosed)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(source.GetType().FullName));
     }
     if (source.Size <= 0)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("source.Size", source.Size, System.ServiceModel.SR.GetString("ValueMustBePositive")));
     }
     ChannelBindingUtility.DuplicatedChannelBinding binding = new ChannelBindingUtility.DuplicatedChannelBinding();
     binding.Initialize(source);
     return binding;
 }