A class’s name includes it’s namespace, so name1.Foo
and name1.name2.Foo
are two completely separate types. So the short answer to your question is: No.
Why do you need to do something like this?
More Related Contents:
- Should ‘using’ directives be inside or outside the namespace?
- Getting all types in a namespace via reflection
- How can I get all classes within a namespace?
- ‘namespace’ but is used like a ‘type’
- Can’t find System.Windows.Media namespace?
- namespace naming conventions
- How to best implement Equals for custom types?
- Namespace and class with the same name?
- the name does not exist in the namespace clr-namespace
- Size of A Class (object) in .NET
- WriteLine with a class
- Should ‘using’ directives be inside or outside the namespace in C#?
- Should the folders in a solution match the namespace?
- C# – How to check if namespace, class or method exists in C#?
- Class with same name in two assemblies (intentionally)
- Can I import a static class as a namespace to call its methods without specifying the class name in C#?
- Why and how does C# allow accessing private variables outside the class itself when it’s within the same containing class?
- Return day Name in c#
- Working of page at background without restricting navigation of other pages in asp.net [closed]
- What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)
- Set timeout for webClient.DownloadFile()
- Most common C# bitwise operations on enums
- ASP.NET MVC Razor pass model to layout
- How to add XmlInclude attribute dynamically
- IIS WCF service hosting vs Windows Service
- How to know the size of the string in bytes?
- Combine two Images into one new Image
- Remove the title bar in Windows Forms
- XmlSerialize a custom collection with an Attribute
- Redirect stdout+stderr on a C# Windows service