Click here to Skip to main content
15,914,070 members
Home / Discussions / C#
   

C#

 
GeneralRe: value type inheritance Pin
N a v a n e e t h8-May-08 3:59
N a v a n e e t h8-May-08 3:59 
GeneralRe: value type inheritance Pin
George_George8-May-08 4:17
George_George8-May-08 4:17 
GeneralRe: value type inheritance Pin
N a v a n e e t h8-May-08 4:45
N a v a n e e t h8-May-08 4:45 
GeneralRe: value type inheritance Pin
George_George8-May-08 21:38
George_George8-May-08 21:38 
GeneralRe: value type inheritance Pin
S. Senthil Kumar8-May-08 6:17
S. Senthil Kumar8-May-08 6:17 
GeneralRe: value type inheritance Pin
CPallini8-May-08 4:03
mveCPallini8-May-08 4:03 
GeneralRe: value type inheritance Pin
George_George8-May-08 4:19
George_George8-May-08 4:19 
GeneralRe: value type inheritance Pin
S. Senthil Kumar8-May-08 6:24
S. Senthil Kumar8-May-08 6:24 
GeneralRe: value type inheritance Pin
George_George8-May-08 21:40
George_George8-May-08 21:40 
GeneralRe: value type inheritance Pin
S. Senthil Kumar9-May-08 0:45
S. Senthil Kumar9-May-08 0:45 
GeneralRe: value type inheritance Pin
Roger Alsing8-May-08 0:43
Roger Alsing8-May-08 0:43 
GeneralRe: value type inheritance Pin
George_George8-May-08 3:03
George_George8-May-08 3:03 
GeneralRe: value type inheritance Pin
S. Senthil Kumar8-May-08 6:21
S. Senthil Kumar8-May-08 6:21 
GeneralRe: value type inheritance Pin
George_George8-May-08 21:49
George_George8-May-08 21:49 
GeneralRe: value type inheritance Pin
S. Senthil Kumar9-May-08 0:42
S. Senthil Kumar9-May-08 0:42 
GeneralRe: value type inheritance Pin
George_George10-May-08 21:57
George_George10-May-08 21:57 
AnswerRe: value type inheritance Pin
N a v a n e e t h8-May-08 3:22
N a v a n e e t h8-May-08 3:22 
George_George wrote:
We can not inherit one value type from another, for example, we can not make a struct inherit from another struct; -- I think it means there is no inheritance or derivation for value types.


Yes. Value types are not possible to inherit. You can use interfaces and implement it on a structure though.

George_George wrote:
All value types are inherits from ValueType, and ValueType is inherits from Object, seems value types could have inheritance or derivation?


Do you know System.ValueType is a class ? Not all value types are inherited from System.ValueType. There are some built in value types like integer. When you write a structure, it will be inherited from System.ValueType.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: value type inheritance Pin
George_George8-May-08 3:33
George_George8-May-08 3:33 
QuestionFlicker with transparent labels on different panels Pin
Sukhjinder_K7-May-08 23:08
Sukhjinder_K7-May-08 23:08 
AnswerRe: Flicker with transparent labels on different panels Pin
phannon867-May-08 23:10
professionalphannon867-May-08 23:10 
GeneralNo change on Suspend/Resume Layout Pin
Sukhjinder_K7-May-08 23:16
Sukhjinder_K7-May-08 23:16 
GeneralRe: No change on Suspend/Resume Layout Pin
phannon867-May-08 23:26
professionalphannon867-May-08 23:26 
GeneralDoesnt work Pin
Sukhjinder_K7-May-08 23:28
Sukhjinder_K7-May-08 23:28 
GeneralSome workarounds... Pin
Sukhjinder_K9-May-08 2:54
Sukhjinder_K9-May-08 2:54 
QuestionDrag & Drop & More Pin
willy20057-May-08 23:07
willy20057-May-08 23:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.