Why we use get set property in c#?
Answer / Sandeep Tiwari
In C#, properties are used to provide a simpler syntax for accessing and modifying private fields. The get and set keywords allow developers to define the behavior of how a field can be retrieved (getter) or assigned a new value (setter). This can include validation, transformation, and encapsulation of data.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is event and delegates in c#?
What is the difference between ienumerable and icollection?
Can scriptable objects have methods?
What is the difference between arraylist and list in c#?
What is Abstraction?
8 Answers Google, HCL, IBM, MAHINDRA, Tech Mahindra,
What is the difference between “finalize” and “finally” methods in c#?
Explain the importance and use of each, version, culture and publickeytoken for an assembly.
What does it meant to say “the canonical” form of XML ?
What is session state in asp net c# with example?
How you will create satellite assemblies?
How many types of serialization are there in c#?
Is lazy thread safe 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)