Click here to Skip to main content
16,010,876 members
Home / Discussions / C#
   

C#

 
GeneralRe: **** The DataGrids! All of them! Pin
James T. Johnson6-Mar-02 13:05
James T. Johnson6-Mar-02 13:05 
GeneralRe: **** The DataGrids! All of them! Pin
Domenic Denicola6-Mar-02 13:39
Domenic Denicola6-Mar-02 13:39 
GeneralRe: **** The DataGrids! All of them! Pin
James T. Johnson6-Mar-02 14:52
James T. Johnson6-Mar-02 14:52 
GeneralRe: **** The DataGrids! All of them! Pin
Domenic Denicola6-Mar-02 15:08
Domenic Denicola6-Mar-02 15:08 
GeneralRe: **** The DataGrids! All of them! Pin
James T. Johnson6-Mar-02 15:36
James T. Johnson6-Mar-02 15:36 
GeneralErrors & Exceptions in C# Pin
Anand Amirineni5-Mar-02 13:05
Anand Amirineni5-Mar-02 13:05 
GeneralRe: Errors & Exceptions in C# Pin
James T. Johnson5-Mar-02 15:50
James T. Johnson5-Mar-02 15:50 
GeneralRe: Errors & Exceptions in C# Pin
7-Mar-02 18:17
suss7-Mar-02 18:17 
Every time you access Name within your getter or setter code, you recursively invoking it. It stops only when this call sequence exhaust the call stack. You can check it tracing execution in debugger. There are to possible ways to correct this. First is to just create the field:

public string Name; // all problems gone

the second one is to back up your property with the private field and use in getter and setter code:

private string name; // lowercase n
public string Name
{
get { return name; } // you are noo more recursively accessing getter here
set { name = value; } // same for setter
}

Cheers,
elk.
QuestionHow to store an object into a database? Pin
5-Mar-02 9:17
suss5-Mar-02 9:17 
AnswerRe: How to store an object into a database? Pin
James T. Johnson5-Mar-02 10:06
James T. Johnson5-Mar-02 10:06 
AnswerRe: How to store an object into a database? Pin
James T. Johnson6-Mar-02 10:20
James T. Johnson6-Mar-02 10:20 
GeneralRe: How to store an object into a database? Pin
AndyG6-Mar-02 18:26
AndyG6-Mar-02 18:26 
Generalhelp in treeview needed Pin
4-Mar-02 22:38
suss4-Mar-02 22:38 
GeneralRe: help in treeview needed Pin
Anand Amirineni5-Mar-02 14:12
Anand Amirineni5-Mar-02 14:12 
QuestionHow to use SSL Pin
Felix Nielsen4-Mar-02 9:19
Felix Nielsen4-Mar-02 9:19 
QuestionHow to sublass visually a C# class Pin
4-Mar-02 6:03
suss4-Mar-02 6:03 
AnswerRe: How to sublass visually a C# class Pin
James T. Johnson4-Mar-02 14:12
James T. Johnson4-Mar-02 14:12 
GeneralRe: How to sublass visually a C# class Pin
5-Mar-02 3:19
suss5-Mar-02 3:19 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson5-Mar-02 7:37
James T. Johnson5-Mar-02 7:37 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 2:44
suss6-Mar-02 2:44 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson6-Mar-02 9:02
James T. Johnson6-Mar-02 9:02 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 10:59
suss6-Mar-02 10:59 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson6-Mar-02 12:42
James T. Johnson6-Mar-02 12:42 
GeneralRe: How to sublass visually a C# class Pin
7-Mar-02 3:31
suss7-Mar-02 3:31 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson7-Mar-02 6:06
James T. Johnson7-Mar-02 6:06 

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.