TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Swapnasagar Panda
NA
19
12.3k
How to convert a Byte Array to decimal value and vice versa in c# 4.0 framework
Aug 8 2012 3:38 AM
How to convert a Byte Array to decimal value and vice versa in c# 4.0 framework.
The following code working in 2.0 and 3.5 , but giving exception in 4.0:--
byte[] bytearray = new bytearray[16];
MemoryStream m2 = new MemoryStream(bytearray);
BinaryReader reader = new BinaryReader(m2);
decimal dec = reader.ReadDecimal();
Console.WriteLine(dec.ToString());
Console.ReadLine();
m2.Close();
reader.Close();
Reply
Answers (
1
)
Selecting all the rows based on distinct column value
How to create Rounded Corner Buttons in VB.net?