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 C Sharp only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C Sharp
Type cast an array from int to long
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
yasirzafar
New Member
Join Date:
Jul 2012
Posts:
6
#1
Type cast an array from int to long
Aug 1 '12, 08:50 AM
my array contains elements of integer type
how can i convert my array to long array
Frinavale
Recognized Expert
Expert
Join Date:
Oct 2006
Posts:
9749
#2
Aug 1 '12, 02:04 PM
The most obvious way would be to create a new array to hold your Longs.
The, loop through the array of integers, cast them to longs while adding them to your new array.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment