how to alias a class name in c# used in webservice

bhguyz

New Member
My web service is returning \[code\] List<Term_Tree> \[/code\]via web method. The Term_Tree class is defined as below\[code\] public class Term_Tree{ public string ID; public string Name; public List<Item> BroaderTerms; public List<Item> NarrowerTerms;}\[/code\]My preferred name for this class is "Term" (i.e. i want to return \[code\]List<Term>\[/code\] via web method) but there is another class with the name "Term" and is widely used in the code. Is it possible to give this class some sort of alias to return \[code\]List<Term>\[/code\]
 
Back
Top