What is the difference between a field and a property in c#?
Answer / Atul Singh
In C#, fields are simple data members of a class that can be directly accessed by code outside of the class. Properties, on the other hand, provide an abstract interface for accessing and manipulating private fields. They can include additional functionality such as validation or automatic conversion.
| Is This Answer Correct ? | 0 Yes | 0 No |
Hai I am Shiva from TN, SSE.I have an query problem. My Table : Door Field : ID,DoorID,ZoneID,Date,Time,Status. Problem was : Status.We got two values, one is 00 (OUTTIME) , Another is 01(INTIME) Like this Status --------- 00 01 00 01 00 01 00 01 How to Set as Status 00 and 01 , of separate column , Status as Intime,Status as Outtime Like this ----------- InTime OutTime ---------- ----------- 01 00 01 00 01 00 01 00 01 00 01 00 Regards KS kumar
How do I move from one form to another in c#?
what is lamda expression?
What is the use of system.environment class in c#.net?
Define property in c#.net?
Explain manifest & metadata.
What is append in c#?
Why do we need abstraction in c#?
What is nameof c#?
What does mean c#?
Why do we need properties in c#?
What is class method c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)