Click here to Skip to main content
15,905,238 members
Home / Discussions / C#
   

C#

 
GeneralRe: pass in parameter from c# Pin
Christian Graus9-Jun-09 20:39
protectorChristian Graus9-Jun-09 20:39 
AnswerRe: pass in parameter from c# Pin
saurabh sahay11-Jun-09 5:37
saurabh sahay11-Jun-09 5:37 
Questionproblem with datatable.importrow Pin
prasadbuddhika9-Jun-09 17:58
prasadbuddhika9-Jun-09 17:58 
AnswerRe: problem with datatable.importrow Pin
prasadbuddhika9-Jun-09 18:07
prasadbuddhika9-Jun-09 18:07 
AnswerRe: problem with datatable.importrow Pin
saurabh sahay11-Jun-09 5:42
saurabh sahay11-Jun-09 5:42 
QuestionWebCamLib Problem Pin
S K Y9-Jun-09 16:55
S K Y9-Jun-09 16:55 
AnswerRe: WebCamLib Problem Pin
Christian Graus9-Jun-09 17:07
protectorChristian Graus9-Jun-09 17:07 
GeneralRe: WebCamLib Problem Pin
S K Y9-Jun-09 19:26
S K Y9-Jun-09 19:26 
QuestionRe: WebCamLib Problem Pin
S K Y9-Jun-09 20:30
S K Y9-Jun-09 20:30 
AnswerRe: WebCamLib Problem Pin
saurabh sahay11-Jun-09 5:47
saurabh sahay11-Jun-09 5:47 
QuestionHow to create the winform with code not by the guide (project-->add-->windows Form) at desgin-time in c#? Pin
mctramp1689-Jun-09 15:39
mctramp1689-Jun-09 15:39 
AnswerRe: How to create the winform with code not by the guide (project-->add-->windows Form) at desgin-time in c#? Pin
Christian Graus9-Jun-09 15:45
protectorChristian Graus9-Jun-09 15:45 
GeneralRe: How to create the winform with code not by the guide (project-->add-->windows Form) at desgin-time in c#? Pin
mctramp1689-Jun-09 16:32
mctramp1689-Jun-09 16:32 
GeneralRe: How to create the winform with code not by the guide (project-->add-->windows Form) at desgin-time in c#? Pin
Christian Graus9-Jun-09 17:09
protectorChristian Graus9-Jun-09 17:09 
QuestionHow to cast to a type stored in a field Pin
redivider9-Jun-09 12:20
redivider9-Jun-09 12:20 
AnswerRe: How to cast to a type stored in a field Pin
Christian Graus9-Jun-09 12:40
protectorChristian Graus9-Jun-09 12:40 
AnswerRe: How to cast to a type stored in a field Pin
Nooner9-Jun-09 14:43
Nooner9-Jun-09 14:43 
AnswerRe: How to cast to a type stored in a field Pin
Thomas Weller9-Jun-09 16:08
Thomas Weller9-Jun-09 16:08 
redivider wrote:
Is "Type" not the right type?

It is, but you are casting to _DataType, which is a variable, not a data type. Seems that you are confusing the two concepts of data type and variable (i.e. an instance of a data type). Besides that, the Object.GetType() method is the way to get type information from an object, casting will generally not work.

So your code snippet should read something like this:
private System.Type _Cow;
private Dictionary<int, object> _BlobData;
...
_Cow = _BlobData[0].GetType();

Regards
Thomas

www.thomas-weller.de

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software.


GeneralRe: How to cast to a type stored in a field Pin
redivider10-Jun-09 6:49
redivider10-Jun-09 6:49 
QuestionLetter from Number generator Pin
Nooner9-Jun-09 11:17
Nooner9-Jun-09 11:17 
AnswerRe: Letter from Number generator Pin
Christian Graus9-Jun-09 11:21
protectorChristian Graus9-Jun-09 11:21 
GeneralRe: Letter from Number generator Pin
Nooner9-Jun-09 13:25
Nooner9-Jun-09 13:25 
GeneralRe: Letter from Number generator Pin
Christian Graus9-Jun-09 14:27
protectorChristian Graus9-Jun-09 14:27 
QuestionConfig files Pin
CodingYoshi9-Jun-09 11:04
CodingYoshi9-Jun-09 11:04 
AnswerRe: Config files Pin
Christian Graus9-Jun-09 11:14
protectorChristian Graus9-Jun-09 11:14 

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.