MSIL generics syntax is the only one that works with reflection. It makes sense, when you think about it, because each .NET language has a different way of referring to generic types, and the CLR is not tied to any of them.
Diego On Sat, Apr 24, 2010 at 12:55, nadav s <[email protected]> wrote: > ok i got it > nevermind :) > Entities.GenericComponent`1[System.String] > .net strange syntax > > > On Sat, Apr 24, 2010 at 6:35 PM, nadav s <[email protected]> wrote: > >> can you help me by telling me how please? >> mapping to both Component or to Component<string> (it was a very >> long shot) >> caused an exception: >> >> when mapping simply to Component: >> Message = "Could not load type 'TestVSOracle.Entities.GenericComponent' >> from assembly 'TestVSOracle, Version=1.0.0.0, Culture=neutral, >> PublicKeyToken=null'." >> >> >> when mapping to Component<string> >> Message = "Could not load type >> 'TestVSOracle.Entities.GenericComponent<string>' from assembly >> 'TestVSOracle, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'." >> >> how is it done ? >> >> On Sat, Apr 24, 2010 at 5:41 PM, Fabio Maulo <[email protected]>wrote: >> >>> Yes. >>> >>> On Sat, Apr 24, 2010 at 10:49 AM, nadav s <[email protected]> wrote: >>> >>>> suppose i have some properties that i wanna wrap with a component, but >>>> the values type might vary >>>> idealy i would like to use a generic Component<T> for this scenario >>>> is it possible? >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "nhusers" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]<nhusers%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/nhusers?hl=en. >>>> >>> >>> >>> >>> -- >>> Fabio Maulo >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "nhusers" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<nhusers%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/nhusers?hl=en. >>> >> >> > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
