Click here to Skip to main content
16,005,141 members
Home / Discussions / C#
   

C#

 
GeneralRe: An object reference is required for the nonstatic field, method, or property .... why?? Pin
J4amieC17-Dec-04 4:03
J4amieC17-Dec-04 4:03 
GeneralRe: An object reference is required for the nonstatic field, method, or property .... why?? Pin
Dave Kreskowiak17-Dec-04 8:27
mveDave Kreskowiak17-Dec-04 8:27 
GeneralDateTime Picker Pin
webhay17-Dec-04 0:58
webhay17-Dec-04 0:58 
GeneralRe: DateTime Picker Pin
Heath Stewart17-Dec-04 1:11
protectorHeath Stewart17-Dec-04 1:11 
GeneralPlacing a AxWebBrowser inside a TabPage Pin
Alberto Bencivenni16-Dec-04 22:48
Alberto Bencivenni16-Dec-04 22:48 
Generalbluetooth Pin
Mridang Agarwalla16-Dec-04 22:06
Mridang Agarwalla16-Dec-04 22:06 
GeneralInterfaces...duhhh! Pin
Mridang Agarwalla16-Dec-04 21:52
Mridang Agarwalla16-Dec-04 21:52 
GeneralRe: Interfaces...duhhh! Pin
Heath Stewart16-Dec-04 23:29
protectorHeath Stewart16-Dec-04 23:29 
Interfaces are contracts that ensures your implementation (either a struct - though not a good idea, unless required because of boxing when casting to that interface - or a class or another interface) implements a certain method, property, or event. Read 13. Interfaces[^] in the C# Language Specification for more details, including the difference between implicit and explicit interface implementations.

As far as how to implement certain interfaces - or rather what they do - you really need to read in the .NET Framework SDK[^] what they do. Many of the topics in the SDK documentation give examples, and there's always more abstract documentation (about how to use Framework features, like serialization and the disposable pattern) if you read Programming with the .NET Framework[^].

Reading is important. Just guessing what they do would teach you the intricacies of how those interfaces work with other classes (like how IFormatter implementations use the ISerializable interface, and that Types must be attributed with the SerializationAttribute to be serializable - ISerializable just allows you to custom serialization of your Type).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Interfaces...duhhh! Pin
Skynyrd16-Dec-04 23:30
Skynyrd16-Dec-04 23:30 
GeneralRe: Interfaces...duhhh! Pin
Heath Stewart17-Dec-04 0:16
protectorHeath Stewart17-Dec-04 0:16 
GeneralRe: Interfaces...duhhh! Pin
Stefan Troschuetz16-Dec-04 23:39
Stefan Troschuetz16-Dec-04 23:39 
GeneralRe: Interfaces...duhhh! Pin
Sebastian Schneider17-Dec-04 0:09
Sebastian Schneider17-Dec-04 0:09 
QuestionHow to create a 2nd AppDomain? Pin
kosjanne16-Dec-04 21:47
kosjanne16-Dec-04 21:47 
AnswerRe: How to create a 2nd AppDomain? Pin
Heath Stewart16-Dec-04 23:39
protectorHeath Stewart16-Dec-04 23:39 
GeneralRe: How to create a 2nd AppDomain? Pin
kosjanne17-Dec-04 0:07
kosjanne17-Dec-04 0:07 
GeneralRe: How to create a 2nd AppDomain? Pin
Heath Stewart17-Dec-04 0:21
protectorHeath Stewart17-Dec-04 0:21 
Generalfinding the program files directory Pin
Mridang Agarwalla16-Dec-04 21:39
Mridang Agarwalla16-Dec-04 21:39 
GeneralRe: finding the program files directory Pin
Mathew Hall16-Dec-04 22:36
Mathew Hall16-Dec-04 22:36 
Questiona problem of code pucker ? Pin
sssa200016-Dec-04 21:32
sssa200016-Dec-04 21:32 
GeneralAutocomplete Pin
Mridang Agarwalla16-Dec-04 21:28
Mridang Agarwalla16-Dec-04 21:28 
Generaltriggering events by code Pin
Mridang Agarwalla16-Dec-04 21:22
Mridang Agarwalla16-Dec-04 21:22 
GeneralRe: triggering events by code Pin
Jay Shankar16-Dec-04 22:43
Jay Shankar16-Dec-04 22:43 
GeneralRe: triggering events by code Pin
Mridang Agarwalla19-Dec-04 23:49
Mridang Agarwalla19-Dec-04 23:49 
GeneralRe: triggering events by code Pin
Jay Shankar20-Dec-04 13:41
Jay Shankar20-Dec-04 13:41 
Generalwindow class name Pin
NikoTanghe16-Dec-04 20:37
NikoTanghe16-Dec-04 20:37 

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.