Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in posts by pvenky only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
pvenky
User Profile
Collapse
Profile Sidebar
Collapse
pvenky
Last Activity: Feb 16 '08, 05:46 PM
Joined: Feb 14 '08
Location:
Subscriptions
1
Subscribers
0
Activities
About
Media
Subscribed
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Source
All
pvenky only
Visitor Messages Only
Advanced
Filtered by:
Clear All
new posts
pvenky
started a topic
C# Generics Question
in
.NET
Feb 14 '08, 04:41 PM
C# Generics Question
If I call an overloaded method, say Convert.ToSingl e and the argument I pass is of generic parameter type T, which overloaded method will this call get bound to?
Here is the code snippet:
Code:
internal void SomeMethod<T>(T arg1) { ... float fValue = Convert.ToSingle(arg1); ... }
The compiler does not seem to care, may be because there exists...
See more
|
Go to post
No activity results to display
Show More
Working...
OK
OK
Cancel
👍
👎
☕