Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6247223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:49:51+00:00 2026-05-24T12:49:51+00:00

Given that the System.ServiceModel.Channels.Binding class in WCF does not have a Clone method, what

  • 0

Given that the System.ServiceModel.Channels.Binding class in WCF does not have a Clone method, what is an efficient way of making a complete, deep copy of a Binding, without writing out all the possible properties by hand?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:49:52+00:00Added an answer on May 24, 2026 at 12:49 pm

    If you don’t mind treating everything as a CustomBinding, you could do this:

    WSHttpBinding original = new WSHttpBinding();
    CustomBinding copy = new CustomBinding(original);
    

    This works because all of the system-provided bindings are equivalent to a CustomBinding with the binding elements pre-configured. Cloning the binding this way means that you don’t have to know the type of the binding in advance, and you certainly don’t have to spend a day typing out every possible property of the Binding types you need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given that I only have one monitor, what's the best way to debug a
I have a silverlight client that can call a method on my WCF web
Given that Decimal.MaxValue = 79228162514264337593543950335m Why does the next line give me 7922816251426433759354395034M in
Given that: SSD’s are now [high end] mainstream Two+ cores are not hard to
I have a small WCF hosting engine that I am writing that will dynamically
I'm trying to recreate a SyndicationFeed object (System.ServiceModel.Syndication) from XML data that has been
I am trying to reproduce something that System.Xml.Serialization already does, but for a different
We have a WCF 4.0 service over https that allows the client to sign
I have a wcf service that I want to provide tracing for on a
I have an ASP.NET MVC site that contains a WCF SVC that is hosted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.