Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
QuestionAccess to My Documents folder? Pin
LongRange.Shooter7-Sep-06 8:13
LongRange.Shooter7-Sep-06 8:13 
AnswerRe: Access to My Documents folder? Pin
led mike7-Sep-06 8:18
led mike7-Sep-06 8:18 
GeneralRe: Access to My Documents folder? Pin
LongRange.Shooter7-Sep-06 8:21
LongRange.Shooter7-Sep-06 8:21 
GeneralRe: Access to My Documents folder? Pin
led mike7-Sep-06 8:26
led mike7-Sep-06 8:26 
AnswerRe: Access to My Documents folder? Pin
Nader Elshehabi7-Sep-06 8:30
Nader Elshehabi7-Sep-06 8:30 
GeneralRe: Access to My Documents folder? Pin
HahnTech7-Sep-06 13:27
HahnTech7-Sep-06 13:27 
GeneralRe: Access to My Documents folder? Pin
Nader Elshehabi7-Sep-06 15:04
Nader Elshehabi7-Sep-06 15:04 
QuestionDetermining a generic type at runtime Pin
Ista7-Sep-06 8:06
Ista7-Sep-06 8:06 
I have a class

public class myclass : BindingList<T> {}

I have created(shadowed) the GetEnumerator method to provide some custom sorting and what not.

But the problem is the type can be Category, Topic, or Entry.

And I need to test each one because each has its own sorting strategy.

I tried if( typeof(T) is Category) but that doesn't work.

What is the easiest way to determine the type T is?



--------------------------------------------------------

1 line of code equals many bugs. So don't write any!!

My mad coder blog

AnswerRe: Determining a generic type at runtime Pin
LongRange.Shooter7-Sep-06 8:16
LongRange.Shooter7-Sep-06 8:16 
GeneralRe: Determining a generic type at runtime Pin
Ista7-Sep-06 8:20
Ista7-Sep-06 8:20 
QuestionDatabound Variable : IS IT POSSIBLE >? Pin
Nadia Monalisa7-Sep-06 6:46
Nadia Monalisa7-Sep-06 6:46 
AnswerRe: Databound Variable : IS IT POSSIBLE >? Pin
LongRange.Shooter7-Sep-06 8:05
LongRange.Shooter7-Sep-06 8:05 
GeneralRe: Databound Variable : IS IT POSSIBLE >? Pin
Nadia Monalisa7-Sep-06 9:36
Nadia Monalisa7-Sep-06 9:36 
QuestionEnding a foreach loop prematurely Pin
Vodstok7-Sep-06 5:35
Vodstok7-Sep-06 5:35 
AnswerRe: Ending a foreach loop prematurely Pin
Colin Angus Mackay7-Sep-06 5:39
Colin Angus Mackay7-Sep-06 5:39 
AnswerRe: Ending a foreach loop prematurely Pin
LongRange.Shooter7-Sep-06 8:11
LongRange.Shooter7-Sep-06 8:11 
QuestionAppbar - when exiting the desktop area isn't re-occupied by other apps Pin
Muller27-Sep-06 5:16
Muller27-Sep-06 5:16 
AnswerRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
led mike7-Sep-06 5:42
led mike7-Sep-06 5:42 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Muller27-Sep-06 8:12
Muller27-Sep-06 8:12 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
led mike7-Sep-06 8:17
led mike7-Sep-06 8:17 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
mav.northwind7-Sep-06 10:01
mav.northwind7-Sep-06 10:01 
AnswerRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Nader Elshehabi7-Sep-06 6:08
Nader Elshehabi7-Sep-06 6:08 
JokeRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Guffa7-Sep-06 9:25
Guffa7-Sep-06 9:25 
JokeRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Nader Elshehabi7-Sep-06 11:32
Nader Elshehabi7-Sep-06 11:32 
QuestionPlaying media files in a Web Browser Pin
AB77717-Sep-06 4:53
AB77717-Sep-06 4:53 

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.