c# unsafe code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • femina
    New Member
    • Dec 2007
    • 35

    c# unsafe code

    if i have an unsafe class with a field char* name; can i be able to assign a value for name say name="hai"
    if its c++ i could use char temp[]="hai"; strcpy(name,tem p) where name is of type char*
    but iam not able to do in c#
    kindly help me with an answer
  • femina
    New Member
    • Dec 2007
    • 35

    #2
    unsafe code

    if i have an unsafe class with a field char* name;
    can i be able to assign a value for name say for example name="hai"
    if its c++ i could use
    char temp[]="hai";
    strcpy(name,tem p)
    where name is of type char*
    but iam not able to do in c#
    kindly help me with an answer

    Comment

    Working...