T
Tamir Khason
I do not know if it is possible, but
I have Class Library with some sealed classes
I have methods returns those classes from this library
I want NOT to reference Library with sealed classes, but use only internal
classes, SO
I can not inherit those sealed classes
I can not (or maybe I can for some kind) to build types or interfaces from
those classes to use in my class
Please advice.
Follow the example:
public namespace Foo1
{
public sealed class FooSealedClass
{}
}
public namespace Foo2
{
public class MyClass
{
FooSealedClass sealed = new FooSealedClass();
public static Type FooUnSealed = typeof(Foo1.FooSealedClass);
//Somethig like that
public static FooUnSealed GetFooUnSealedStat {return sealed;}
public FooUnSealed GetFooUnSealed {return sealed;}
}
}
using Foo2;
public namespace MyInvocator
{
public class Inv
{
public Inv()
{
MyClass myclass = new MyClass();
FooUnSealed myunsealed1 = MyClass.GetFooUnSealedStat ;
FooUnSealed myunsealed2 = myclass.GetFooUnSealed ;
}
}
}
TNX
I have Class Library with some sealed classes
I have methods returns those classes from this library
I want NOT to reference Library with sealed classes, but use only internal
classes, SO
I can not inherit those sealed classes
I can not (or maybe I can for some kind) to build types or interfaces from
those classes to use in my class
Please advice.
Follow the example:
public namespace Foo1
{
public sealed class FooSealedClass
{}
}
public namespace Foo2
{
public class MyClass
{
FooSealedClass sealed = new FooSealedClass();
public static Type FooUnSealed = typeof(Foo1.FooSealedClass);
//Somethig like that
public static FooUnSealed GetFooUnSealedStat {return sealed;}
public FooUnSealed GetFooUnSealed {return sealed;}
}
}
using Foo2;
public namespace MyInvocator
{
public class Inv
{
public Inv()
{
MyClass myclass = new MyClass();
FooUnSealed myunsealed1 = MyClass.GetFooUnSealedStat ;
FooUnSealed myunsealed2 = myclass.GetFooUnSealed ;
}
}
}
TNX