How do I translate VB.Net's CType() to C#

前端 未结 4 1531
南方客
南方客 2020-12-20 15:50

I Have this code segment in VB NET:

CType(pbImageHolder.Image, Bitmap).SetPixel(curPoint.X, curPoint.Y, Color.Purple)

what is

4条回答
  •  遥遥无期
    2020-12-20 15:59

    Hi this is the code after conversion VB to C# code:

    ((Bitmap)pbImageHolder.Image).SetPixel(curPoint.X, curPoint.Y, Color.Purple);
    

    And if you want code conversion from VB to C# and vice verse go through the following link: http://www.developerfusion.com/tools/convert/vb-to-csharp/

提交回复
热议问题