Dot Net Solvents
Wednesday, 7 July 2010
IN & NOTIN EXTENSION METHODS
public
static
bool
In
<
T
>
(
this
T value,
params
T
[
]
values
)
{
return
values.
Contains
(
value
)
;
}
public
static
bool
NotIn
<
T
>
(
this
T value,
params
T
[
]
values
)
{
return
!
In
(
value, values
)
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment