Solved

Is there a better way to describe Contracts for child classes

Posted on 2011-09-30
6
181 Views
Last Modified: 2012-05-12
Is there a better way than having to add a knowntypeattribute for child classes to the base class?
0
Comment
Question by:modotx
  • 3
  • 3
6 Comments
 
LVL 18

Expert Comment

by:DarrenD
ID: 36899691
0
 

Author Comment

by:modotx
ID: 36910709
This almost works.  The problem I seem to be having is when the operation is returning a generic interface type (i.e. IList(Of BaseType)).  Any ideas?
0
 
LVL 18

Expert Comment

by:DarrenD
ID: 36910828
Hi,

You may have to change the Collection Type: which appears when you right click the service in VS and choose Configure Service Reference. Change Collection Type to System.Collections.Generic.List

Not sure, but might help

Darren
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:modotx
ID: 36911649
Isn't that for configuring the client?  Right now I am testing it using the WCF Test Client.  Is there a way to configure that?
0
 
LVL 18

Accepted Solution

by:
DarrenD earned 250 total points
ID: 36915624
0
 

Author Closing Comment

by:modotx
ID: 36956099
Thank you
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question