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

C#

 
AnswerRe: Too many generics in code. Pin
Paulo Zemek25-Nov-09 7:57
Paulo Zemek25-Nov-09 7:57 
GeneralRe: Too many generics in code. [modified] Pin
CaptainSeeSharp25-Nov-09 8:18
CaptainSeeSharp25-Nov-09 8:18 
AnswerRe: Too many generics in code. Pin
Member 218499725-Nov-09 10:07
Member 218499725-Nov-09 10:07 
GeneralRe: Too many generics in code. Pin
CaptainSeeSharp25-Nov-09 10:44
CaptainSeeSharp25-Nov-09 10:44 
AnswerRe: Too many generics in code. Pin
PIEBALDconsult25-Nov-09 12:15
mvePIEBALDconsult25-Nov-09 12:15 
GeneralRe: Too many generics in code. Pin
Lutosław25-Nov-09 13:23
Lutosław25-Nov-09 13:23 
GeneralRe: Too many generics in code. Pin
PIEBALDconsult25-Nov-09 15:34
mvePIEBALDconsult25-Nov-09 15:34 
AnswerRe: Too many generics in code. Pin
Gideon Engelberth25-Nov-09 12:20
Gideon Engelberth25-Nov-09 12:20 
A little insight into the classes would let me be more sure, but I'm guessing that you have more generic parameters than you need. Also, this is a great place to use var

I would guess that you could declare the classes something like this:

class Node<TTileMap, TTile, TData>
{
    private SimplePathFinder<TTileMap, TTile, TData> finder;
    private TTileMap map;
    private TTile tile;
    private TData data;
}

class NodeHeap<TTileMap, TTile, TData>
{
    private Node<TTileMap, TTile, TData> _nodes[];
}

//this would then declare the same class
var opelList = new NodeHeap<TTileMap, TTile, TData>();

GeneralRe: Too many generics in code. Pin
CaptainSeeSharp25-Nov-09 13:50
CaptainSeeSharp25-Nov-09 13:50 
QuestionDrawing Windows window Pin
cdpace25-Nov-09 7:25
cdpace25-Nov-09 7:25 
AnswerRe: Drawing Windows window Pin
Paulo Zemek25-Nov-09 8:03
Paulo Zemek25-Nov-09 8:03 
GeneralRe: Drawing Windows window Pin
cdpace25-Nov-09 10:31
cdpace25-Nov-09 10:31 
GeneralRe: Drawing Windows window Pin
Paulo Zemek25-Nov-09 11:14
Paulo Zemek25-Nov-09 11:14 
QuestionVS integrated designer Pin
careylin25-Nov-09 5:01
careylin25-Nov-09 5:01 
AnswerRe: VS integrated designer Pin
avigodse26-Nov-09 19:11
professionalavigodse26-Nov-09 19:11 
Questionbenifit of string constructor Pin
Member 225007225-Nov-09 3:25
Member 225007225-Nov-09 3:25 
AnswerRe: benifit of string constructor Pin
dan!sh 25-Nov-09 3:26
professional dan!sh 25-Nov-09 3:26 
AnswerRe: benifit of string constructor Pin
Simon P Stevens25-Nov-09 4:19
Simon P Stevens25-Nov-09 4:19 
AnswerRe: benifit of string constructor Pin
Shameel25-Nov-09 4:47
professionalShameel25-Nov-09 4:47 
AnswerRe: benifit of string constructor Pin
OriginalGriff25-Nov-09 5:34
mveOriginalGriff25-Nov-09 5:34 
AnswerRe: benifit of string constructor Pin
PIEBALDconsult25-Nov-09 12:17
mvePIEBALDconsult25-Nov-09 12:17 
QuestionA network-related or instance-specific error Pin
Jassim Rahma25-Nov-09 3:21
Jassim Rahma25-Nov-09 3:21 
AnswerRe: A network-related or instance-specific error Pin
Jassim Rahma25-Nov-09 3:38
Jassim Rahma25-Nov-09 3:38 
Questionserver application capturing audio from Skype Pin
johnyjj225-Nov-09 2:53
johnyjj225-Nov-09 2:53 
QuestionControl relocated if changing fontsize in designer Pin
rpm820025-Nov-09 2:08
rpm820025-Nov-09 2:08 

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.