I need help with this error :"The modifier 'readonly' is not valid for this item"
I am writing this code in projrct type class Library
Here is the code:
Thank you very much.
I am writing this code in projrct type class Library
Here is the code:
Code:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BE { public enum STATUSACCOUNT { Bounded, Active, OnProbation }; public class Account { public int AccountNumber { get; set; } public int AccountBranchNumber { get; set; } public readonly DateTime DateOpeingAccount { get; set; } //error public STATUSACCOUNT StatusAccount { get; set; } public string Password { get; set; } public int Balance { get; set; } public int CreditFacility { get; set; } public DateTime CreditFacilityExpiration { get; set; } public string TypeAccount { get; set; } } }
Comment