If I have VB declaration like this Public ReadOnly Property Document() As XmlDocument
, what is its C# equivalent? Thanks.
public XmlDocument Document
{
get {return someXmlDoc;}
}
You can use automatic properties in C# 3.0+ to achieve the same thing:
public XmlDocument Document { get; private set; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With