Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: Resource File Pin
Tony Richards25-Mar-10 2:43
Tony Richards25-Mar-10 2:43 
GeneralRe: Resource File Pin
Syed Shahid Hussain25-Mar-10 2:48
Syed Shahid Hussain25-Mar-10 2:48 
AnswerRe: Resource File Pin
Bernhard Hiller25-Mar-10 3:18
Bernhard Hiller25-Mar-10 3:18 
GeneralRe: Resource File Pin
Syed Shahid Hussain25-Mar-10 4:09
Syed Shahid Hussain25-Mar-10 4:09 
QuestionSerialization Pin
vamsimohan2125-Mar-10 0:11
vamsimohan2125-Mar-10 0:11 
AnswerRe: Serialization Pin
Keith Barrow25-Mar-10 0:17
professionalKeith Barrow25-Mar-10 0:17 
GeneralRe: Serialization Pin
vamsimohan2125-Mar-10 0:29
vamsimohan2125-Mar-10 0:29 
GeneralRe: Serialization Pin
Keith Barrow25-Mar-10 1:01
professionalKeith Barrow25-Mar-10 1:01 
Services and object orientation do not play well together.

I don't think it is desirable (I'm not sure it is even possible) to pass up a Test<object>.
The list / array needs to be of a known type, passing up a Test<Base> is certainly an option in WCF, but you need to register A and B as KnownTypes. What you have done gives off a "bad code smell", the class structure is perfectly fine from an OO point of view (I'm not sure of the purpose of Test<Object> or CustomCollection however), but when calling services it is much better to use well defined types for making calls, and the onus is on the server to provide these types. Addtionally [if memory serves] custom collections / Lists are frowned upon in asmx services as they won't interop well with Java etc.


The normal pattern with services is:

1. Define types that can be passed up and down the wire in web service calls.
2. Make method calls that use the defined types in step 1.
3. Use Wsdl.exe to generate a proxy class to communicate with the web (asmx) service

You then will probably need to convert the types passed up and down the wire into your proper object model.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

QuestionDynamically change Crystal Report Viewer source Pin
jamesc6924-Mar-10 23:13
jamesc6924-Mar-10 23:13 
AnswerRe: Dynamically change Crystal Report Viewer source Pin
Rajasekhar Reddy Adam24-Mar-10 23:39
Rajasekhar Reddy Adam24-Mar-10 23:39 
Questionaccessing C API from C# Pin
mavrick2324-Mar-10 21:22
mavrick2324-Mar-10 21:22 
AnswerRe: accessing C API from C# Pin
Calla24-Mar-10 21:45
Calla24-Mar-10 21:45 
AnswerRe: accessing C API from C# Pin
Richard MacCutchan24-Mar-10 22:54
mveRichard MacCutchan24-Mar-10 22:54 
GeneralRe: accessing C API from C# Pin
mavrick2324-Mar-10 23:57
mavrick2324-Mar-10 23:57 
AnswerRe: accessing C API from C# Pin
mavrick2324-Mar-10 23:12
mavrick2324-Mar-10 23:12 
GeneralRe: accessing C API from C# Pin
Richard MacCutchan25-Mar-10 2:14
mveRichard MacCutchan25-Mar-10 2:14 
GeneralRe: accessing C API from C# Pin
Luc Pattyn25-Mar-10 3:00
sitebuilderLuc Pattyn25-Mar-10 3:00 
Questionhow to empty textbox in a groupbox Pin
crisjala24-Mar-10 16:22
crisjala24-Mar-10 16:22 
AnswerRe: how to empty textbox in a groupbox Pin
Not Active24-Mar-10 16:23
mentorNot Active24-Mar-10 16:23 
AnswerRe: how to empty textbox in a groupbox Pin
Khaniya24-Mar-10 18:33
professionalKhaniya24-Mar-10 18:33 
GeneralRe: how to empty textbox in a groupbox Pin
crisjala24-Mar-10 20:47
crisjala24-Mar-10 20:47 
QuestionMessage Removed Pin
24-Mar-10 13:50
user20524-Mar-10 13:50 
AnswerRe: Event Pin
Luc Pattyn24-Mar-10 14:13
sitebuilderLuc Pattyn24-Mar-10 14:13 
AnswerRe: Event Pin
Not Active24-Mar-10 15:11
mentorNot Active24-Mar-10 15:11 
AnswerRe: Event Pin
PIEBALDconsult24-Mar-10 16:10
mvePIEBALDconsult24-Mar-10 16:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.