Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
C#
»
C#: Classes
»
C#: Classes properties
User login
Username
*
Password
*
Request new password
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
What code is in the image?
*
Enter the characters shown in the image.
Read-only stored properties in C#
Submitted by
obraztsov
on Wed, 12/09/2015 - 11:04
Forums:
C#: Classes properties
class
FilmList
{
public
int
Count {
get
;
private
set
; }
public
FilmList() {
Count = 10;
}
}
Log in
to post comments