viji malik

viji malik

  • NA
  • 1
  • 0

Cannot implicitly convert type 'sbyte[]' to 'sbyte*'

Jul 19 2007 7:56 AM

getting the error =   Cannot implicitly convert type 'sbyte[]' to 'sbyte*'        

Unsafe{   sbyte[] StrSbyte = new sbyte[] { 123, 121, 121,};

           sbyte* PtrSbyte = StrSbyte   // Error is coming for this part

            String Strvar = new string(PtrSbyte);

            Console.WriteLine(*PtrSbyte);

          Console.WriteLine(Strvar);

              }
I have tried the explicit conversion then also it is not compiling


Answers (1)