Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How is a property designated as read-only?
How is a property designated as read-only?
✍: Guest
In VB.NET:
Public ReadOnly Property PropertyName As ReturnType
Get ‘Your Property Implementation goes in here
End Get
End Property
in C#
public returntype PropertyName
{
get{
//property implementation goes here
}
// Do not write the set implementation
}
2014-02-07, 2184👍, 0💬
Popular Posts:
WHat will be the result of the following code? #define TRUE 0 // some code while (TRUE) { // some co...
What is the purpose of finalization? The purpose of finalization is to give an unreachable object th...
Can include files be nested? The answer is yes. Include files can be nested any number of times. As ...
Where Is the Submitted Form Data Stored? - PHP Script Tips - Processing Web Forms When a user submit...
In below sample code if we create a object of class2 which constructor will fire first? Public Class...