Click here to Skip to main content
16,014,589 members
Home / Discussions / C#
   

C#

 
GeneralRe: Properties and ArrayLists Pin
Werdna25-May-04 3:46
Werdna25-May-04 3:46 
QuestionHow to get access database tables count and name in c#? Pin
Old Gun24-May-04 5:36
Old Gun24-May-04 5:36 
AnswerRe: How to get access database tables count and name in c#? Pin
Heath Stewart24-May-04 6:13
protectorHeath Stewart24-May-04 6:13 
GeneralRe: How to get access database tables count and name in c#? Pin
Old Gun24-May-04 15:55
Old Gun24-May-04 15:55 
Generalconst parameters in c# Pin
Joel Holdsworth24-May-04 4:36
Joel Holdsworth24-May-04 4:36 
GeneralRe: const parameters in c# Pin
Heath Stewart24-May-04 4:47
protectorHeath Stewart24-May-04 4:47 
GeneralRe: const parameters in c# Pin
Joel Holdsworth24-May-04 4:53
Joel Holdsworth24-May-04 4:53 
GeneralRe: const parameters in c# Pin
Heath Stewart24-May-04 4:59
protectorHeath Stewart24-May-04 4:59 
Interesting if true; I've never seen that documented. It would definitely be a compiler feature, though, and have no bearing in the actual code.

Keep in mind that an Int32 is a value type and is therefore passed by value. This won't prevent your code from changing it, but if your method implementation does it won't affect the variable that was passed to you (if a variable was indeed passed to your method). Since your method isn't virtual (and hence can't be overridden), just make sure you don't change it. I know that's not a lot of protection, but declaring an argument as constant is really just to avoid future headaches if you forget that you shouldn't change it, IMO.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: const parameters in c# Pin
Joel Holdsworth24-May-04 5:03
Joel Holdsworth24-May-04 5:03 
GeneralRe: const parameters in c# Pin
leppie24-May-04 11:13
leppie24-May-04 11:13 
GeneralRe: const parameters in c# Pin
Baris Kurtlutepe26-May-04 9:51
Baris Kurtlutepe26-May-04 9:51 
Generalxml in datagrid Pin
bertcox24-May-04 4:20
bertcox24-May-04 4:20 
GeneralRe: xml in datagrid Pin
Heath Stewart24-May-04 4:29
protectorHeath Stewart24-May-04 4:29 
GeneralRe: xml in datagrid Pin
bertcox24-May-04 4:44
bertcox24-May-04 4:44 
GeneralRe: xml in datagrid Pin
Heath Stewart24-May-04 4:52
protectorHeath Stewart24-May-04 4:52 
GeneralRe: xml in datagrid Pin
bertcox24-May-04 4:58
bertcox24-May-04 4:58 
GeneralRe: xml in datagrid Pin
Heath Stewart24-May-04 5:02
protectorHeath Stewart24-May-04 5:02 
GeneralRe: xml in datagrid Pin
bertcox24-May-04 5:26
bertcox24-May-04 5:26 
GeneralRe: xml in datagrid Pin
Heath Stewart24-May-04 5:32
protectorHeath Stewart24-May-04 5:32 
GeneralRe: xml in datagrid Pin
bertcox24-May-04 5:35
bertcox24-May-04 5:35 
QuestionGDI+:How to capture a treeview to bmp? Pin
CNU23-May-04 23:23
CNU23-May-04 23:23 
AnswerRe: GDI+:How to capture a treeview to bmp? Pin
Dave Kreskowiak24-May-04 4:02
mveDave Kreskowiak24-May-04 4:02 
AnswerRe: GDI+:How to capture a treeview to bmp? Pin
Heath Stewart24-May-04 4:14
protectorHeath Stewart24-May-04 4:14 
QuestionCheck for Invalid Characters ? Pin
azusakt23-May-04 22:53
azusakt23-May-04 22:53 
AnswerRe: Check for Invalid Characters ? Pin
Colin Angus Mackay23-May-04 23:35
Colin Angus Mackay23-May-04 23: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.