Why do we need properties in c#?
Answer / Hitesh Mishra
Properties in C# provide a simplified and user-friendly way to interact with private fields, enabling data encapsulation. They allow read-only or write-only access, validation of the setter or getter, and automatic generation of associated methods.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is object an int c#?
What is verbatim literal in c#?
What is parsing?
What is a callback c#?
Where are value types stored in c#?
why C#.net doesnot support prcedures and why it supports structs,functions
What is property c#?
Which attribute is used in order that the method can be used as webservice?
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide virtual SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }
How many aware interfaces are there?
What is jit (just in time)?
So let's say I have an application that uses myapp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name myapp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new myapp.dll?
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)