Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
AnswerRe: OpenGL in C# and Visual Studio 2005/2008 Pin
Patrick Skelton3-Jan-10 22:31
Patrick Skelton3-Jan-10 22:31 
QuestionEvent Handler Pin
AlexB473-Jan-10 0:06
AlexB473-Jan-10 0:06 
AnswerRe: Event Handler Pin
DaveyM693-Jan-10 0:33
professionalDaveyM693-Jan-10 0:33 
GeneralRe: Event Handler Pin
AlexB473-Jan-10 4:05
AlexB473-Jan-10 4:05 
Questionword file Not lock...? Pin
koolprasad20032-Jan-10 23:48
professionalkoolprasad20032-Jan-10 23:48 
QuestionI'm Baffled Again Pin
Roger Wright2-Jan-10 21:49
professionalRoger Wright2-Jan-10 21:49 
AnswerRe: I'm Baffled Again Pin
Richard MacCutchan2-Jan-10 22:00
mveRichard MacCutchan2-Jan-10 22:00 
AnswerRe: I'm Baffled Again Pin
Abhinav S2-Jan-10 22:06
Abhinav S2-Jan-10 22:06 
Roger Wright wrote:
public Point GetVertex1 { return Vertex1; }


As far as the error is concerned, this should fix it for you.

public Point GetVertex1        <br />
{<br />
   get { return Vertex1; }<br />
}



Roger Wright wrote:
thought that a private variable is accessible by all members of a class


A private variable would be accessible to all members inside a class. However, when you are defining a property, you are basically defining a get / set pair, or a get (for a readonly property). In short, the get / set accessor error is caused because the compiler needs syntax written that way. For some more information, try going through this link[^].

There are only 10 types of people in this world — those who understand binary, and those who don't.

modified on Sunday, January 3, 2010 4:13 AM

AnswerRe: I'm Baffled Again Pin
Rob Philpott2-Jan-10 22:17
Rob Philpott2-Jan-10 22:17 
GeneralRe: I'm Baffled Again Pin
Roger Wright4-Jan-10 1:46
professionalRoger Wright4-Jan-10 1:46 
AnswerRe: I'm Baffled Again Pin
DaveyM692-Jan-10 23:56
professionalDaveyM692-Jan-10 23:56 
QuestionRe: I'm Baffled Again Pin
Abhinav S3-Jan-10 0:03
Abhinav S3-Jan-10 0:03 
AnswerRe: I'm Baffled Again Pin
DaveyM693-Jan-10 0:28
professionalDaveyM693-Jan-10 0:28 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 0:35
Rob Philpott3-Jan-10 0:35 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 0:51
professionalDaveyM693-Jan-10 0:51 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:09
mveOriginalGriff3-Jan-10 1:09 
GeneralRe: I'm Baffled Again Pin
Abhinav S3-Jan-10 1:13
Abhinav S3-Jan-10 1:13 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:23
mveOriginalGriff3-Jan-10 1:23 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 1:15
professionalDaveyM693-Jan-10 1:15 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 1:14
professionalDaveyM693-Jan-10 1:14 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 1:20
Rob Philpott3-Jan-10 1:20 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:25
mveOriginalGriff3-Jan-10 1:25 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 1:35
Rob Philpott3-Jan-10 1:35 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:48
mveOriginalGriff3-Jan-10 1:48 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 6:35
Rob Philpott3-Jan-10 6: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.