how to convert this code to C#.

Protected Class Calendar

Public Sub New(ByRef Picker As NullableDateTimePicker)
End Sub

End Class

try this

class Calendar {

    public Calendar(ref NullableDateTimePicker Picker) {
    }
}

i use this site to convert code from vb.net to c#
Click Here

Regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.