Click here to Skip to main content
15,908,661 members
Home / Discussions / C#
   

C#

 
GeneralRe: Casting a value to an enum type Pin
Igor Velikorossov23-Mar-06 11:13
Igor Velikorossov23-Mar-06 11:13 
just realised i copied the bit of code from net 1.1 project. in net 2.0 you can get away without using try/catch for it is rather expensive and use int.TryParse() method...

the reason behind the whole thing is that you verify that the database values are within your enum, otherwise you may have injected values which just aren't defined...
AnswerRe: Casting a value to an enum type Pin
TeamWild23-Mar-06 23:23
TeamWild23-Mar-06 23:23 
Questionscripting language with C# Pin
Inuyasha96323-Mar-06 7:17
Inuyasha96323-Mar-06 7:17 
AnswerRe: scripting language with C# Pin
Roland Bär23-Mar-06 8:20
Roland Bär23-Mar-06 8:20 
AnswerRe: scripting language with C# Pin
Ed.Poore23-Mar-06 12:23
Ed.Poore23-Mar-06 12:23 
QuestionC# imaging Pin
XeoN-Kc23-Mar-06 6:50
XeoN-Kc23-Mar-06 6:50 
AnswerRe: C# imaging Pin
Ravi Bhavnani23-Mar-06 7:04
professionalRavi Bhavnani23-Mar-06 7:04 
Questionballoon tooltips in .net 2.0 Pin
Mridang Agarwalla23-Mar-06 6:39
Mridang Agarwalla23-Mar-06 6:39 
AnswerRe: balloon tooltips in .net 2.0 Pin
Ravi Bhavnani23-Mar-06 6:49
professionalRavi Bhavnani23-Mar-06 6:49 
GeneralRe: balloon tooltips in .net 2.0 Pin
Mridang Agarwalla23-Mar-06 18:13
Mridang Agarwalla23-Mar-06 18:13 
GeneralRe: balloon tooltips in .net 2.0 Pin
moon_stick24-Mar-06 0:57
moon_stick24-Mar-06 0:57 
GeneralRe: balloon tooltips in .net 2.0 Pin
Ravi Bhavnani24-Mar-06 1:53
professionalRavi Bhavnani24-Mar-06 1:53 
AnswerRe: balloon tooltips in .net 2.0 Pin
Luis Alonso Ramos24-Mar-06 5:39
Luis Alonso Ramos24-Mar-06 5:39 
QuestionUsing a C DLL in a C# Application... Pin
signbit23-Mar-06 6:04
signbit23-Mar-06 6:04 
AnswerRe: Using a C DLL in a C# Application... Pin
Judah Gabriel Himango23-Mar-06 6:13
sponsorJudah Gabriel Himango23-Mar-06 6:13 
GeneralRe: Using a C DLL in a C# Application... Pin
Mridang Agarwalla23-Mar-06 6:42
Mridang Agarwalla23-Mar-06 6:42 
GeneralRe: Using a C DLL in a C# Application... Pin
Judah Gabriel Himango23-Mar-06 7:08
sponsorJudah Gabriel Himango23-Mar-06 7:08 
Questionupload file to the server c# win form Pin
fady_sayegh23-Mar-06 5:57
fady_sayegh23-Mar-06 5:57 
QuestionUserSettings in VS 2005, how they serialize? Pin
TigerNinja_23-Mar-06 4:49
TigerNinja_23-Mar-06 4:49 
AnswerRe: UserSettings in VS 2005, how they serialize? Pin
TigerNinja_23-Mar-06 5:28
TigerNinja_23-Mar-06 5:28 
QuestionRelay information back to parent window. Pin
zaboboa23-Mar-06 4:01
zaboboa23-Mar-06 4:01 
AnswerRe: Relay information back to parent window. Pin
LongRange.Shooter23-Mar-06 4:22
LongRange.Shooter23-Mar-06 4:22 
GeneralRe: Relay information back to parent window. Pin
zaboboa23-Mar-06 4:32
zaboboa23-Mar-06 4:32 
Questioncasting an abstract class to a subclass Pin
gregbowe23-Mar-06 3:53
gregbowe23-Mar-06 3:53 
AnswerRe: casting an abstract class to a subclass Pin
Stefan Troschuetz23-Mar-06 4:04
Stefan Troschuetz23-Mar-06 4:04 

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.