Click here to Skip to main content
15,911,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: howto insert textbox.text into access ? [modified] Pin
t.thomsen@judoo.dk26-May-06 10:44
t.thomsen@judoo.dk26-May-06 10:44 
QuestionPitch from Wav Pin
gnjunge26-May-06 2:31
gnjunge26-May-06 2:31 
AnswerRe: Pitch from Wav Pin
mav.northwind26-May-06 13:13
mav.northwind26-May-06 13:13 
GeneralRe: Pitch from Wav Pin
gnjunge27-May-06 22:23
gnjunge27-May-06 22:23 
GeneralRe: Pitch from Wav Pin
gnjunge31-May-06 0:57
gnjunge31-May-06 0:57 
GeneralRe: Pitch from Wav Pin
mav.northwind1-Jun-06 1:43
mav.northwind1-Jun-06 1:43 
QuestionHow do i findout list of all the SQLServer Names or Data Sources in a domain ? Pin
Shiv526-May-06 2:30
Shiv526-May-06 2:30 
QuestionHow get access to default value of an system type. Pin
El'Cachubrey26-May-06 2:19
El'Cachubrey26-May-06 2:19 
Hi all
How i can to get access to default value or MinValue of an system type.
Or constuct byself an MinValue (or default value) value for each type.
I understand this is possible to make with switch\case but i wont know is exist more convinet way.In run time.
Exmpl:
<br />
<br />
object GetDefaultValue(object SysTypeValue)<br />
{<br />
     object defVal;<br />
<br />
     ......<br />
<br />
     return defVal;<br />
}<br />
<br />
void Main()<br />
{<br />
   System.Date dt = System.Date.Now();<br />
   int i = 100;<br />
   char c = 'a';<br />
   byte b = 8;<br />
<br />
   System.Console.WriteLine(GetDefaultValue(i).ToString());<br />
   System.Console.WriteLine(GetDefaultValue(c).ToString());<br />
   System.Console.WriteLine(GetDefaultValue(b).ToString());<br />
   System.Console.WriteLine(GetDefaultValue(dt).ToString());<br />
<br />
<br />
}<br />
<br />


console:
0
0
0
01.01.0001 0:00:00


THANK
AnswerRe: How get access to default value of an system type. Pin
Stefan Troschuetz26-May-06 23:14
Stefan Troschuetz26-May-06 23:14 
Questionnumeric conversion for if check Pin
Mairaaj Khan26-May-06 2:15
professionalMairaaj Khan26-May-06 2:15 
AnswerRe: numeric conversion for if check Pin
J4amieC26-May-06 2:51
J4amieC26-May-06 2:51 
GeneralRe: numeric conversion for if check Pin
Mairaaj Khan26-May-06 19:35
professionalMairaaj Khan26-May-06 19:35 
AnswerRe: numeric conversion for if check [modified] Pin
V.26-May-06 4:52
professionalV.26-May-06 4:52 
GeneralRe: numeric conversion for if check [modified] Pin
J4amieC26-May-06 5:12
J4amieC26-May-06 5:12 
GeneralRe: numeric conversion for if check [modified] Pin
V.26-May-06 5:42
professionalV.26-May-06 5:42 
GeneralRe: numeric conversion for if check [modified] Pin
J4amieC26-May-06 10:02
J4amieC26-May-06 10:02 
GeneralRe: numeric conversion for if check [modified] Pin
V.26-May-06 10:06
professionalV.26-May-06 10:06 
GeneralRe: numeric conversion for if check [modified] Pin
Mairaaj Khan26-May-06 19:39
professionalMairaaj Khan26-May-06 19:39 
AnswerRe: numeric conversion for if check Pin
Robin Panther26-May-06 11:55
Robin Panther26-May-06 11:55 
GeneralRe: numeric conversion for if check Pin
Mairaaj Khan26-May-06 19:43
professionalMairaaj Khan26-May-06 19:43 
Questionhelp for inserting data to msaccess ? Pin
cmpeng3426-May-06 2:03
cmpeng3426-May-06 2:03 
AnswerRe: help for inserting data to msaccess ? [modified] Pin
rah_sin26-May-06 2:06
professionalrah_sin26-May-06 2:06 
QuestionCustom control - configuration in desing time Pin
kamarchand26-May-06 1:30
kamarchand26-May-06 1:30 
QuestionShow Internet Optiions Dialog with C# [modified] Pin
Adiphe26-May-06 0:55
Adiphe26-May-06 0:55 
AnswerRe: Show Internet Optiions Dialog with C# [modified] Pin
Shajeel26-May-06 1:32
Shajeel26-May-06 1:32 

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.