G
Guest
Execuse me.
I do boxing, for example Employee class, as object:
public object ManipulateObject(object objInput)
{
...
Object obj;
obj = objInput;
...
//Manipulate obj here..
...
return obj;
}
Assume, then the client procedure/function exactly not know what the
original class is
and call this function by passing, may be Employee, Customer, or Supplier
class or whatever class.
The problem is, how to get an object as original class, so we can perform
unboxing and get back the original class?
Best regards.
Joufri
I do boxing, for example Employee class, as object:
public object ManipulateObject(object objInput)
{
...
Object obj;
obj = objInput;
...
//Manipulate obj here..
...
return obj;
}
Assume, then the client procedure/function exactly not know what the
original class is
and call this function by passing, may be Employee, Customer, or Supplier
class or whatever class.
The problem is, how to get an object as original class, so we can perform
unboxing and get back the original class?
Best regards.
Joufri