Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between structures and enumeration ?



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

Post New Answer

More Dot Net Framework Interview Questions

What are Model Binders in ASP.Net MVC?

0 Answers  


Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Qu)I Got Exception in "try" block. Which "catch" statement (i.e. 1st catch or 2nd catch ) catches the exception and Why???

6 Answers   3i Infotech,


If I have multiple filters implemented, what is the order in which these filters get executed?

0 Answers  


What is session state management?

0 Answers  


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

0 Answers  


What is the mvc pattern (model view controller pattern)?

0 Answers  


What is the difference between using system.net and system.net.sockets?

1 Answers  


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

0 Answers  


What is GUID and why we need to use it and in what condition? How this is created

1 Answers  


js fn to go to the particular page when enter is clicked

1 Answers  


What platforms does the .NET Framework run on?

1 Answers  


Is it possible to create a custom filter?

0 Answers  


Categories