Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: datatable method to return no value Pin
Mycroft Holmes31-Jan-15 21:03
professionalMycroft Holmes31-Jan-15 21:03 
AnswerRe: datatable method to return no value Pin
F-ES Sitecore2-Feb-15 6:31
professionalF-ES Sitecore2-Feb-15 6:31 
QuestionC# SendKeys + - ~ signs? Pin
Linus Agren31-Jan-15 7:38
Linus Agren31-Jan-15 7:38 
AnswerRe: C# SendKeys + - ~ signs? Pin
LLLLGGGG31-Jan-15 12:37
LLLLGGGG31-Jan-15 12:37 
GeneralRe: C# SendKeys + - ~ signs? Pin
Linus Agren1-Feb-15 5:59
Linus Agren1-Feb-15 5:59 
GeneralRe: C# SendKeys + - ~ signs? Pin
LLLLGGGG1-Feb-15 6:49
LLLLGGGG1-Feb-15 6:49 
QuestionC# Pin
Member 1116162531-Jan-15 4:23
Member 1116162531-Jan-15 4:23 
AnswerRe: C# Pin
LLLLGGGG31-Jan-15 4:32
LLLLGGGG31-Jan-15 4:32 
Hi,

The Object (or object, in C# is the same), is the main type for all reference types (which are classes, like List<t>, Controls, FileInfo and so on). Every class, whether you create it or not, implicitly derives from object even if it derives from another one and I'm going to explain you why. Even if you create a class and make it derive from another, that other class must derive from some other class. If you dig through the hierarchy of a class, you'll find that the very base class is object.

In simple words: any reference type can be converted in object. More exactly, all reference types are objects.
So object is the base class of any other class, even if specified another one to derive from.

Have you understood it more deeply? From the question I can understand you're a beginner. On Codeproject you can find useful tutorials for beginners in C# such as Diving in OOP[^]. Please read them as they are really useful.

To make it even more simple: object can encapsulate every reference type you use. You can say that FileInfo is an object implicitly, but you'll need an explicit conversion to say the contrary: that an object is a FileInfo.

Hope this helps.

LG
Lusvardi Gianmarco

GeneralRe: C# Pin
OriginalGriff31-Jan-15 4:48
mveOriginalGriff31-Jan-15 4:48 
GeneralRe: C# Pin
LLLLGGGG31-Jan-15 5:11
LLLLGGGG31-Jan-15 5:11 
AnswerRe: C# Pin
OriginalGriff31-Jan-15 4:47
mveOriginalGriff31-Jan-15 4:47 
QuestionDrawing semi-transparent polygons in C# for CF Pin
Arturo D. Gentili31-Jan-15 1:25
Arturo D. Gentili31-Jan-15 1:25 
AnswerRe: Drawing semi-transparent polygons in C# for CF Pin
Dave Kreskowiak31-Jan-15 4:24
mveDave Kreskowiak31-Jan-15 4:24 
AnswerRe: Drawing semi-transparent polygons in C# for CF Pin
BillWoodruff31-Jan-15 18:05
professionalBillWoodruff31-Jan-15 18:05 
GeneralRe: Drawing semi-transparent polygons in C# for CF Pin
Arturo D. Gentili2-Feb-15 0:01
Arturo D. Gentili2-Feb-15 0:01 
QuestionHow can use these WinApi function in c# Pin
Ahmet Doğan30-Jan-15 23:54
Ahmet Doğan30-Jan-15 23:54 
QuestionTessnet2 in C# reads only one word in the sentence Pin
Praveen Chougale30-Jan-15 23:34
Praveen Chougale30-Jan-15 23:34 
AnswerRe: Tessnet2 in C# reads only one word in the sentence Pin
OriginalGriff31-Jan-15 0:39
mveOriginalGriff31-Jan-15 0:39 
Questionhow i can make code in Page.IsPostBack run on event Pin
Member 1048092030-Jan-15 21:49
Member 1048092030-Jan-15 21:49 
AnswerRe: how i can make code in Page.IsPostBack run on event Pin
OriginalGriff31-Jan-15 0:45
mveOriginalGriff31-Jan-15 0:45 
AnswerRe: how i can make code in Page.IsPostBack run on event Pin
Dave Kreskowiak31-Jan-15 4:08
mveDave Kreskowiak31-Jan-15 4:08 
QuestionHow to enable kiosk mode on windows 7 Pin
vahidbakhtiary30-Jan-15 20:00
vahidbakhtiary30-Jan-15 20:00 
AnswerRe: How to enable kiosk mode on windows 7 Pin
Afzaal Ahmad Zeeshan30-Jan-15 21:22
professionalAfzaal Ahmad Zeeshan30-Jan-15 21:22 
GeneralRe: How to enable kiosk mode on windows 7 Pin
vahidbakhtiary31-Jan-15 0:20
vahidbakhtiary31-Jan-15 0:20 
AnswerRe: How to enable kiosk mode on windows 7 Pin
OriginalGriff30-Jan-15 21:35
mveOriginalGriff30-Jan-15 21:35 

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.