Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
QuestionRadioBoutton as a group Pin
CodingLover9-Dec-08 19:49
CodingLover9-Dec-08 19:49 
AnswerRe: RadioBoutton as a group Pin
Chintan.Desai9-Dec-08 19:55
Chintan.Desai9-Dec-08 19:55 
AnswerRe: RadioBoutton as a group Pin
N a v a n e e t h9-Dec-08 20:03
N a v a n e e t h9-Dec-08 20:03 
QuestionRe: RadioBoutton as a group Pin
CodingLover9-Dec-08 20:28
CodingLover9-Dec-08 20:28 
AnswerRe: RadioBoutton as a group Pin
dan!sh 9-Dec-08 20:58
professional dan!sh 9-Dec-08 20:58 
GeneralRe: RadioBoutton as a group Pin
Dan Neely10-Dec-08 2:10
Dan Neely10-Dec-08 2:10 
AnswerRe: RadioBoutton as a group Pin
N a v a n e e t h9-Dec-08 21:17
N a v a n e e t h9-Dec-08 21:17 
QuestionCasting objects returned by reflection to a generic object Pin
Omer S.9-Dec-08 19:46
Omer S.9-Dec-08 19:46 
The story behind this question is simple: I'm trying to build a serializer that serializes a generic class into a custom format.

public class NGConfigUnit<t>
{
protected T _value;
.........
.......
public T Value
{
get
{
return _value;
}
set
{
_value = value;
_isDirty = true;
}
}
}


Problem is that when I access the class via reflection the values are returned as object.
Even though I can check the value of T using reflection and generate an instance using a factory, I cannot reference a generic instance dynamically i.e. I cannot write something like (no support for this C#):
NGConfigUnit<typeof(myval> unit = .....

This blocks me from accessing fields and properties explicitly, which is crucial for the rest of my code.
Any idea how to reach am alternative?

Thanks,
Omer
AnswerRe: Casting objects returned by reflection to a generic object Pin
leppie9-Dec-08 20:16
leppie9-Dec-08 20:16 
GeneralRe: Casting objects returned by reflection to a generic object Pin
Omer S.9-Dec-08 23:44
Omer S.9-Dec-08 23:44 
QuestionHow to add custom event log type in windows event log via C# [modified] Pin
Chintan.Desai9-Dec-08 19:45
Chintan.Desai9-Dec-08 19:45 
Questiondatagridview Pin
kulandaivel_mca20079-Dec-08 18:20
kulandaivel_mca20079-Dec-08 18:20 
AnswerRe: datagridview Pin
Christian Graus9-Dec-08 18:20
protectorChristian Graus9-Dec-08 18:20 
AnswerRe: datagridview Pin
Brij9-Dec-08 18:39
mentorBrij9-Dec-08 18:39 
QuestionI have problem with namespace and property, could someone show me what I need to do. Pin
Fabyta9-Dec-08 18:09
Fabyta9-Dec-08 18:09 
AnswerRe: I have problem with namespace and property, could someone show me what I need to do. Pin
Christian Graus9-Dec-08 18:23
protectorChristian Graus9-Dec-08 18:23 
GeneralRe: I have problem with namespace and property, could someone show me what I need to do. Pin
Fabyta9-Dec-08 18:35
Fabyta9-Dec-08 18:35 
GeneralRe: I have problem with namespace and property, could someone show me what I need to do. Pin
Christian Graus9-Dec-08 18:50
protectorChristian Graus9-Dec-08 18:50 
GeneralRe: I have problem with namespace and property, could someone show me what I need to do. Pin
Fabyta10-Dec-08 1:36
Fabyta10-Dec-08 1:36 
QuestionCommunicating thru Serial port and UART interface Pin
TJS4u9-Dec-08 18:06
TJS4u9-Dec-08 18:06 
AnswerRe: Communicating thru Serial port and UART interface Pin
N a v a n e e t h9-Dec-08 18:12
N a v a n e e t h9-Dec-08 18:12 
GeneralRe: Communicating thru Serial port and UART interface Pin
Luc Pattyn9-Dec-08 23:41
sitebuilderLuc Pattyn9-Dec-08 23:41 
QuestionSerialization problem Pin
Richard Blythe9-Dec-08 18:01
Richard Blythe9-Dec-08 18:01 
AnswerRe: Serialization problem Pin
N a v a n e e t h9-Dec-08 18:10
N a v a n e e t h9-Dec-08 18:10 
QuestionNot being able to close an application with Alt-F4 Pin
Joshomedia9-Dec-08 13:48
Joshomedia9-Dec-08 13:48 

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.