What is the difference between structures and enumeration ?
Answer / kirti
Unlike classes, structs are value types and do not require heap allocation. A variable of a struct type directly contains the data of the struct, whereas a variable of a class type contains a reference to the data. They are derived from System.ValueType class.
Enum->An enum type is a distinct type that declares a set of named constants.They are strongly typed constants. They are unique types that allow to declare symbolic names to integral values. Enums are value types, which means they contain their own value, can't inherit or be inherited from and assignment copies the value of one enum to another.
public enum Grade
{
A,
B,
C
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Types of assemblies that can be created in dotnet ?
What is strong name?
Describe the roles of clr in .net framework.?
Can we create .DLL file without using the namespace?
Can we change web.config settings from iis?
What is IL
im software developer (.net). i goth1b (usa )appointment 30th of this month . chennai people asking responsbilities .can anyone wht responsbilities i need say . plz help me
How can we determine action invoked from HTTP GET or HTTP POST?
What is poco proxy? : Entity framework
How does assembly versioning work?
What is representational state transfer (rest) mean?
I want ask from plz smaple example code for Biztalkk server