Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Any alternative to avoid name collisions other then Namespaces?

Answer Posted / p.ramakrishna

A scenario that two namespaces named N1 and N2 are there
both having the same class say A. now in another class i ve
written
using N1;using N2;
and i am instantiating class A in this class. Then how will
u avoid name collisions?
Ans: using alias
Eg: using MyAlias = MyCompany.Proj.Nested;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WSDL means?

1093


What is the difference between system.stringbuilder and system.string

714


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

1016


What is manifest in .net framework?

980


What is AutoPostback?

1092


Explain the use of duration attribute of @outputcache page directive.

1056


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

6538


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

1047


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

2192


How to use a Master Database in Asp.net?

1012


How do you secure your configuration files to be accessed remotely by unauthorized users?

1064


What is inproc and outproc?

944


How to implement Authentication and Authorization?

1013


Is it possible to write code in many languages in one asp.net project?

974


Explain the difference between page.registerclientscriptblock and page.registerstartupscript?

982