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 4550780
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:32:37+00:00 2026-05-21T16:32:37+00:00

For WCF I need to specify that the known type for any IEnumerable<T> is

  • 0

For WCF I need to specify that the known type for any IEnumerable<T> is T[]. Is there any way that this is possible using the configuration section? Something like the following, though I know it doesn’t work just like this:

  <system.runtime.serialization>
    <dataContractSerializer>
      <declaredTypes>
        <add type="System.IEnumerable<MyClass>, myassembly1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
          <knownType type="MyClass[], myassembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        </add>
      </declaredTypes>
    </dataContractSerializer>
  </system.runtime.serialization>
  • 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-21T16:32:38+00:00Added an answer on May 21, 2026 at 4:32 pm

    I don’t think the DCS supports open generic types.
    For more information on DCS + Collections, see:
    http://msdn.microsoft.com/en-us/library/aa347850.aspx

    For more information about specifying assembly names in configuration files, see:
    http://msdn.microsoft.com/en-us/library/ff660933(v=pandp.20).aspx

    –larsw

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

Sidebar

Related Questions

Is there any way to customize or control which type of collection class types
Is there a way to do this globally, automatically for all my WCF services
I writing a WCF Service that need transfer large files, so i using streaming,
I understsand that if I want to use authentication in WCF then I need
I need to host a WCF service in IIS that exposes a wsHttpBinding. That
I need to send byte[] array using WCF services and I care about message
There are three sections in WCF configuration for service client: Look at bindings =>
Is there any attibute or similar mechanism to inform a web service consumer that
I have a WCF service. I need to implement IServiceBehavior in my class that
For my WCF, I need to generate configuration file for my client application to

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.