Re: Value / primitive type constraints on generics



"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:#5qY#siFGHA.2652@xxxxxxxxxxxxxxxxxxxx:

> What I think he meant to ask was will the constraint using "struct"
> allow an int to be passed for the type parameter T.
>

Yeah I realized that after I saw your response. :) That's why I'm eating
lunch at 4:30.

-mdb
.



Relevant Pages

  • Re: A Generic Generics Problem
    ... struct MySumwhere T: struct, ... public static T AddInteger(T value, ... > the TypeConverter. ... >>> constraint language details). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: generics - constraint
    ... a float or a double: ... 'int' is not a valid constraint. ... a non-sealed class or a type parameter. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Value / primitive type constraints on generics
    ... What I think he meant to ask was will the constraint using "struct" ... allow an int to be passed for the type parameter T. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Linux 2.6.27.8
    ... struct pt_regs *regs); ... static int printbinary ... void show_regs ...
    (Linux-Kernel)
  • [PATCH 4/7] lguest documentation:Chapter IV
    ... static int waker_fd; ... struct device *dev; ... static void *map_zeroed_pages ... * the Guest memory. ...
    (Linux-Kernel)

Loading