Hi,
I'm not exactly sure I understand fully what you want to achieve.
Let say you have:
namespace Foo {
public class Bar {
public void Baz() {}
}
}
You say you want to "mirror" that in another namespace. What do you
mean by mirror that should not be duplicated? You want to re-create
the exact same type? You want to create a proxy to the existing type?
You can't use type forwarders as those are only a way to move a type
from an assembly to another, but you can't alter their fullname.
Jb
On Thu, Nov 7, 2013 at 9:15 AM, ilkerde <[email protected]> wrote:
> Hi,
>
> I'm new to Cecil and I'd like to know how I can "mirror" types from
> namespace A within one assembly into a second namespace B.
>
> Use Case:
> Given an assembly with hundreds of types within namespace A (and its
> subnamespaces A.X.Y), my target is to establish a second namespace B (and
> maybe a subnamespace B.Z) and have all the types from namespace A "mirrored"
> (or let's better say mapped) to the newly created namespace B (within the
> same assembly). Ideally, the types should not be duplicated.
>
> I'm aware of the type forwarding feature of .NET 4.5, but I don't think that
> it appropriately solves my case. Can you please give me a hint on how to
> achieve this with Cecil?
>
> Thank you very much for your assistance in advance!
>
> Best,
> Ilker
>
> --
> --
> --
> mono-cecil
> ---
> You received this message because you are subscribed to the Google Groups
> "mono-cecil" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
--
--
--
mono-cecil
---
You received this message because you are subscribed to the Google Groups
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.