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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:08:12+00:00 2026-05-27T06:08:12+00:00

Just need some help with this. I have written a WCF service which passes

  • 0

Just need some help with this.

I have written a WCF service which passes through a list of custom objects (these objects are marked as serializable, so they pass through fine).

What do I need to write in the client to be able to receive these objects? I’d like to be able to receive them without having a definition of the class locally. I tried getting them as an object but I get the error

Cannot implicitly convert type ‘System.Collections.Generic.List<TestService.Member>’ to ‘System.Collections.Generic.List<object>’

Hope this is enough information, any pointers would be useful.

  • 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-27T06:08:13+00:00Added an answer on May 27, 2026 at 6:08 am

    I think you need to do a couple of things:

    1) Create a custom class for this collection class that inherits from System.Collections.Generic.List

    2) Decorate this new class with CollectionDataContract

    3) In the client, edit reference.svcmap and add an entry for this new item to the CollectionMappings section. To find the svcmap, show all files in the project and expand the WCF service reference.

    For the class:

    [CollectionDataContract]
    public class MemberCollection: List<Member>
    

    For the svcmap:

      <CollectionMapping TypeName="MyNameSpace.MemberCollection" Category="List" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started using CodeContracts with C#, and I might need some help.
I got some code off the Internet and now I just need help to
Just need some quick clarification I have 2 Queries in my Access Database that
I just need some advice on if this is wise. I'm loading my site
Im just starting with localization today and need some information. I have a project
I have just written my own logging framework (very lightweight, no need for a
Just went through a variant of the game : Rock-Paper-Scissor-Lizard-Spock I have written a
I have created a WCF service, now this WCF service has to call a
I am having an absolute headache figuring this out. I badly need some help
I've spent 3 hrs starring at this and need some help. I'm pretty new

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.