About generics [solved]
-
:laugh: hahah... good one, but that didnt help... think fast, be brave and dont stop.
I'll have to think about it. Gimme 7.5 million years...
-
I'll have to think about it. Gimme 7.5 million years...
Thank god, Apple didn't fall on you ;P
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
ok, now i can see that this is possible; class Animals: IEnumerable {}; forget about the IEnumerable, im just trying to show some generic type of itself... im just bothered... where can we make use of this (a generic type of itself) in the real world?
-
One i can think is a tree or a graph, where each node is defined as the collection of all its children.
yeah, i thought of the same with nodes... but the thing is, on an engineering standpoint we already have better implimentations of a node... wont a collection as a node just bloat everything? :sigh: newez, was just hoping for something 'unique' that it can solve with... or maybe im just crossing the line where it says 'bad design on generics' here... :(
-
ok, now i can see that this is possible; class Animals: IEnumerable {}; forget about the IEnumerable, im just trying to show some generic type of itself... im just bothered... where can we make use of this (a generic type of itself) in the real world?
-
yeah, i thought of the same with nodes... but the thing is, on an engineering standpoint we already have better implimentations of a node... wont a collection as a node just bloat everything? :sigh: newez, was just hoping for something 'unique' that it can solve with... or maybe im just crossing the line where it says 'bad design on generics' here... :(
what im really fussing about is that this can be more than just on collections... its generic interfaces, objects, and what nots on itself... u know... :wtf: think fast, be brave and dont stop.
-
rights... now i feel stupid... hehehe... got my 5 here... thanks... think fast, be brave and dont stop.
-
ok, now i can see that this is possible; class Animals: IEnumerable {}; forget about the IEnumerable, im just trying to show some generic type of itself... im just bothered... where can we make use of this (a generic type of itself) in the real world?
-
How about a factory
public class GenericFactory<T> where T : new()
{
public T Create(){
return new T();
}
}no, the guy up there got it... i wanted to see the declared type (itself) being passed back into the generic... (with some sense into it) think fast, be brave and dont stop.
-
Belgium.
What a beautiful answer: Totally useless, sarcastic and technically correct in all respects at the same time. I want to 5 you, but I know I shouldn't :-).