Click here to Skip to main content
14,665,426 members
Home » Discussions » C#
   

C#

 
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
Membermctramp1689-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
mveChristian 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
Membermctramp1689-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
mveChristian Graus9-Jun-09 17:09 
QuestionHow to cast to a type stored in a field Pin
redivider9-Jun-09 12:20
Memberredivider9-Jun-09 12:20 
AnswerRe: How to cast to a type stored in a field Pin
Christian Graus9-Jun-09 12:40
mveChristian Graus9-Jun-09 12:40 
AnswerRe: How to cast to a type stored in a field Pin
Nooner9-Jun-09 14:43
MemberNooner9-Jun-09 14:43 
AnswerRe: How to cast to a type stored in a field Pin
Thomas Weller9-Jun-09 16:08
MemberThomas 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
Memberredivider10-Jun-09 6:49 
QuestionLetter from Number generator Pin
Nooner9-Jun-09 11:17
MemberNooner9-Jun-09 11:17 
AnswerRe: Letter from Number generator Pin
Christian Graus9-Jun-09 11:21
mveChristian Graus9-Jun-09 11:21 
GeneralRe: Letter from Number generator Pin
Nooner9-Jun-09 13:25
MemberNooner9-Jun-09 13:25 
GeneralRe: Letter from Number generator Pin
Christian Graus9-Jun-09 14:27
mveChristian Graus9-Jun-09 14:27 
QuestionConfig files Pin
CodingYoshi9-Jun-09 11:04
MemberCodingYoshi9-Jun-09 11:04 
AnswerRe: Config files Pin
Christian Graus9-Jun-09 11:14
mveChristian Graus9-Jun-09 11:14 
AnswerRe: Config files Pin
Dave Kreskowiak9-Jun-09 12:32
mveDave Kreskowiak9-Jun-09 12:32 
GeneralRe: Config files Pin
CodingYoshi9-Jun-09 17:22
MemberCodingYoshi9-Jun-09 17:22 
GeneralRe: Config files Pin
CodingYoshi10-Jun-09 3:49
MemberCodingYoshi10-Jun-09 3:49 
QuestionPrevious result of a method call is remembered. Is this related with JIT compiler? Pin
bin_bin19-Jun-09 10:31
Memberbin_bin19-Jun-09 10:31 
AnswerRe: Previous result of a method call is remembered. Is this related with JIT compiler? Pin
Christian Graus9-Jun-09 10:43
mveChristian Graus9-Jun-09 10:43 
GeneralRe: Previous result of a method call is remembered. Is this related with JIT compiler? Pin
bin_bin19-Jun-09 11:52
Memberbin_bin19-Jun-09 11:52 
GeneralRe: Previous result of a method call is remembered. Is this related with JIT compiler? Pin
Christian Graus9-Jun-09 12:09
mveChristian Graus9-Jun-09 12:09 
AnswerRe: Previous result of a method call is remembered. Is this related with JIT compiler? Pin
Dr.Walt Fair, PE9-Jun-09 11:58
professionalDr.Walt Fair, PE9-Jun-09 11:58 
QuestionSubmit a specific form in HTML page Pin
Fayu9-Jun-09 10:03
MemberFayu9-Jun-09 10:03 
Question3D point / 3 axis chart. Pin
amirbrb9-Jun-09 9:36
Memberamirbrb9-Jun-09 9:36 

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.