chipanjichiru Posted March 17, 2011 Report Posted March 17, 2011 Can we have two namespaces with same name in two different assemblys? If the class names are also same in namespaces, then how can we use them?Example:Assembly1:Namespace1Class1Assembly2Namespace1class1 sCo_hmmthink sCo_hmmthink sCo_hmmthink sCo_hmmthink sCo_hmmthink
kiraaaak Posted March 17, 2011 Report Posted March 17, 2011 sCo_hmmthink sCo_hmmthink sCo_hmmthink undochu anukunta @3$% @3$%
htnamus Posted March 17, 2011 Report Posted March 17, 2011 sCo_hmmthink sCo_hmmthink sCo_hmmthink F@!n F@!n F@!n
chipanjichiru Posted March 17, 2011 Author Report Posted March 17, 2011 [quote author=HS link=topic=168940.msg2045404#msg2045404 date=1300383120] sCo_hmmthink sCo_hmmthink sCo_hmmthink F@!n F@!n F@!n[/quote]Yemiti mama undocha...I think the answer is yes...By checking google, I understand that We can refer to Namespace by using assembly name...But How to refer to assembly name... They said that we have to use [size=14pt]extern alias[/size] ..I never heard about this.,.. F@!n F@!n F@!n ippude interiewlo adigaru....I said yes.... @3$% @3$% @3$%
chipanjichiru Posted March 17, 2011 Author Report Posted March 17, 2011 sorry2 sorry2 sorry2 sorry2 lift chesthunnanu anthe...yemee anukokandi ... sSc_hiding2 sSc_hiding2 sSc_hiding2
chipanjichiru Posted March 17, 2011 Author Report Posted March 17, 2011 [quote author=KINGNAKERS link=topic=168940.msg2045739#msg2045739 date=1300384840]Assemblies different kabatti yes you can have. sHa_high5ing sHa_high5ing[/quote]Then how can we reference those classes in a program.... sCo_hmmthink sCo_hmmthink sCo_hmmthink sHa_high5ing sHa_high5ing sHa_high5ing
Jambhalheart Posted March 17, 2011 Report Posted March 17, 2011 Yes can use... as they r in different assemblies right.... sHa_high5ingmoreover... ILDASM converts to source code.... if u write one in c# and other in vb.net, both gets converted to source code... so there should not be a problem....
htnamus Posted March 17, 2011 Report Posted March 17, 2011 [quote author=KINGNAKERS link=topic=168940.msg2045874#msg2045874 date=1300385620][url=http://tech-question.com/class-with-same-name-in-two-assemblies-intentionally]http://tech-question.com/class-with-same-name-in-two-assemblies-intentionally[/url]read it and let me know if it helps anything.[/quote] you rock you rock you rock you rock you rock hangu gada majakaaa
The QUEEN Posted March 17, 2011 Report Posted March 17, 2011 [quote author=TollywoodEmperor link=topic=168940.msg2045636#msg2045636 date=1300384246]Yemiti mama undocha...I think the answer is yes...By checking google, I understand that We can refer to Namespace by using assembly name...But How to refer to assembly name... They said that we have to use [size=14pt]extern alias[/size] ..I never heard about this.,.. F@!n F@!n F@!n ippude interiewlo adigaru....I said yes.... @3$% @3$% @3$%[/quote] @gr33d @gr33d thankyou
PAM PACHAK Posted March 17, 2011 Report Posted March 17, 2011 [quote author=TollywoodEmperor link=topic=168940.msg2045723#msg2045723 date=1300384732] sorry2 sorry2 sorry2 sorry2 lift chesthunnanu anthe...yemee anukokandi ... sSc_hiding2 sSc_hiding2 sSc_hiding2[/quote]good work dude!!!!
chipanjichiru Posted March 17, 2011 Author Report Posted March 17, 2011 [quote author=KINGNAKERS link=topic=168940.msg2045874#msg2045874 date=1300385620][url=http://tech-question.com/class-with-same-name-in-two-assemblies-intentionally]http://tech-question.com/class-with-same-name-in-two-assemblies-intentionally[/url]read it and let me know if it helps anything.[/quote] thankyou baa..kani adhi chadhiva tharvathane paina oka solution ihanu...but still extern alias use chesi yela cheyalo ardham kavadam ledhu ... sCo_hmmthink sCo_hmmthink sCo_hmmthink
chipanjichiru Posted March 17, 2011 Author Report Posted March 17, 2011 [quote author=KINGNAKERS link=topic=168940.msg2046616#msg2046616 date=1300389754] replies lo evaro chepparu ga ela cheyyalo.[/quote]Adhi nene anukunta baa vesindhi... sHa_high5ing sHa_high5ing @3$%
PAM PACHAK Posted March 17, 2011 Report Posted March 17, 2011 [url=http://www.davidarno.org/c-howtos/aliases-overcoming-name-conflicts-part-2-extern-alias/]http://www.davidarno.org/c-howtos/aliases-overcoming-name-conflicts-part-2-extern-alias/[/url]try this if it helps
chipanjichiru Posted March 17, 2011 Author Report Posted March 17, 2011 [quote author=PAM PACHAK link=topic=168940.msg2046979#msg2046979 date=1300392082][url=http://www.davidarno.org/c-howtos/aliases-overcoming-name-conflicts-part-2-extern-alias/]http://www.davidarno.org/c-howtos/aliases-overcoming-name-conflicts-part-2-extern-alias/[/url]try this if it helps[/quote] thankyou thankyou thankyou thankyou thankyou thankyou thankyou seraching for this only... you rock you rock you rock you rock
Recommended Posts