Click here to Skip to main content
15,909,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: array of strucs Pin
Christian Graus13-Dec-05 10:37
protectorChristian Graus13-Dec-05 10:37 
QuestionRandom Generation Pin
Dave Hurt12-Dec-05 10:16
Dave Hurt12-Dec-05 10:16 
AnswerRe: Random Generation Pin
Ista12-Dec-05 16:13
Ista12-Dec-05 16:13 
QuestionImplementing an Interface Pin
adafaaa12-Dec-05 10:07
adafaaa12-Dec-05 10:07 
AnswerRe: Implementing an Interface Pin
Colin Angus Mackay12-Dec-05 11:09
Colin Angus Mackay12-Dec-05 11:09 
AnswerRe: Implementing an Interface Pin
Charlie Williams12-Dec-05 11:11
Charlie Williams12-Dec-05 11:11 
QuestionInterfaces & Objects Pin
adafaaa12-Dec-05 9:48
adafaaa12-Dec-05 9:48 
AnswerRe: Interfaces & Objects Pin
Colin Angus Mackay12-Dec-05 11:15
Colin Angus Mackay12-Dec-05 11:15 
adafaaa wrote:
Is an Interface a Reference Type?


An interface is just a set of method and property descriptions that an object that inherits from it must implement. If you have a variable declared as an interface, the object it references will be a concrete type that is derived from the interface.

adafaaa wrote:
can an Interface refer to an object


interfaces cannot have fields, therefore they cannot refer to an object.

adafaaa wrote:
now is tokens[0] an instance of IVisitableToken or something else


You cannot have an instance of an interface as it is not a concrete type. You can only have instances of concrete types (interfaces and abstract classes are not concrete types)

tokens[0] is a KeywordToken (in this instace, because that is what you stored there). You can, of course, store an instance of any other object that inherits from IVisitableToken also.

Does this help?


My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious


QuestionImplementing cut, copy, paste, undo, select all Pin
monrobot1312-Dec-05 9:01
monrobot1312-Dec-05 9:01 
AnswerRe: Implementing cut, copy, paste, undo, select all Pin
Polis Pilavas12-Dec-05 11:26
Polis Pilavas12-Dec-05 11:26 
Questionpassing parameters to a DLL function receiving pointer Pin
devinzhang12-Dec-05 8:27
devinzhang12-Dec-05 8:27 
AnswerRe: passing parameters to a DLL function receiving pointer Pin
Colin Angus Mackay12-Dec-05 9:33
Colin Angus Mackay12-Dec-05 9:33 
AnswerRe: passing parameters to a DLL function receiving pointer Pin
Colin Angus Mackay12-Dec-05 9:35
Colin Angus Mackay12-Dec-05 9:35 
GeneralRe: passing parameters to a DLL function receiving pointer Pin
devinzhang12-Dec-05 9:58
devinzhang12-Dec-05 9:58 
AnswerRe: passing parameters to a DLL function receiving pointer Pin
Jared Parsons12-Dec-05 11:40
Jared Parsons12-Dec-05 11:40 
GeneralRe: passing parameters to a DLL function receiving pointer Pin
devinzhang12-Dec-05 12:08
devinzhang12-Dec-05 12:08 
QuestionSigning CodeDom assemblies Pin
cbadal12-Dec-05 8:00
cbadal12-Dec-05 8:00 
AnswerRe: Signing CodeDom assemblies Pin
cbadal14-Dec-05 7:08
cbadal14-Dec-05 7:08 
QuestionDatagrid ghost selection Pin
Glenn E. Lanier II12-Dec-05 6:29
Glenn E. Lanier II12-Dec-05 6:29 
QuestionUDP port not receiving any data Pin
MullahOmer12-Dec-05 6:14
MullahOmer12-Dec-05 6:14 
AnswerRe: UDP port not receiving any data Pin
mcljava12-Dec-05 7:44
mcljava12-Dec-05 7:44 
QuestionThoughtpost P2P Pin
ShimiG12-Dec-05 6:07
ShimiG12-Dec-05 6:07 
AnswerRe: Thoughtpost P2P Pin
Dave Kreskowiak12-Dec-05 6:29
mveDave Kreskowiak12-Dec-05 6:29 
GeneralRe: Thoughtpost P2P Pin
ShimiG12-Dec-05 6:40
ShimiG12-Dec-05 6:40 
GeneralRe: Thoughtpost P2P Pin
Dave Kreskowiak12-Dec-05 10:07
mveDave Kreskowiak12-Dec-05 10: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.