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
Maha
NA
0
326k
Dynamic data type
Apr 23 2014 10:03 AM
In this following example dynamic data type is behaving in a contradictory manner. Please explain the reason.
Dynamic data type multiplying two variables in the 1st output and adding two variables in the 2nd output. Problem is highlighted.
using System;
class Program
{
static void Main(string[] args)
{
dynamic d1, d2;
d1 = "A";
d2 = 1;
Console.WriteLine(d1 + d2);
//A1
d1 = 10.01;
d2 = 1;
Console.WriteLine(d1 + d2);
//11.01
Console.ReadKey();
}
}
Reply
Answers (
2
)
max record + 1
Retrive image from database using c#