managed type_id

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boni

    managed type_id

    Dear all,
    what is a correct syntax for typeid inC++ CLI.
    Thanks.
    Boni
    void test( Object ^Value_){

    if (typeid(Value)= =typed (int)) // fails

    if (Value->GetType()=Syst em::Int32::GetT ype())//fails

    }


  • Tomas Restrepo \(MVP\)

    #2
    Re: managed type_id

    Boni,
    [color=blue]
    > what is a correct syntax for typeid inC++ CLI.[/color]

    Use

    <Type>::typei d;

    Example:

    Type^ intType = System::Int32:: typeid;


    --
    Tomas Restrepo
    tomasr@mvps.org



    Comment

    Working...