Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/articles/c-sharp-tutorials/)
-   -   Data Types in C# (http://www.go4expert.com/articles/data-types-c-sharp-t4382/)

shabbir 21Feb2008 11:18

Re: Data Types in C#
 
Quote:

Originally Posted by aisha.ansari84
shabbir why you are saying article by pradeep is not duplicate. this article is 100% duplicate from msdn or that article ( I have given a link)

I am saying its not an exact copy from the link you mentioned but yes the classification and the description of the data type is but that is hardly any problem because MSDN also states the same thing in the same manner.

Quote:

Originally Posted by aisha.ansari84
First thing shabbir, you are saying duplicate. But do you know the meaning of duplicate???

This is not at all duplicate ... This is illegal Copied from some author article.

there is very big difference b/w duplicate and Illegal copied.

:iagree: and that is the reason all of them have been removed.

samanatabaki 14Apr2012 00:06

Re: Data Types in C#
 
hello and thank you for your good discussion.
The question I have is this. we say we can hold any data type in object data type. we can hold integers, string, char, decimal and many others. so why would we need other data types? why microsoft put all of those int, string, char, byte, single, and ... to .net library. there must be a reason and I will be happy if anyone could help me.
thank you

beelzebub 19Nov2012 10:23

Re: Data Types in C#
 
You can use code:
Using System.Data.SqlClient;
using System.Collections.Specialized;
using System.Text;

Here’s the code block for deleting multiple records

#region Multiple Delete
private void DeleteRecords(StringCollection sc)
{
SqlConnection conn = new SqlConnection(GetConnectionString());
StringBuilder sb = new StringBuilder(string.Empty);

foreach (string item in sc)
{
const string sqlStatement = "DELETE FROM Customers WHERE CustomerID";
sb.AppendFormat("{0}='{1}'; ",sqlStatement, item);
}
try
{
conn.Open();
SqlCommand cmd = new SqlCommand(sb.ToString(), conn);
cmd.CommandType = CommandType.Text;
cmd.ExecuteNonQuery();
}
catch (System.Data.SqlClient.SqlException ex)
{
string msg = "Deletion Error:";
msg += ex.Message;
throw new Exception(msg);
}
finally
{
conn.Close();
}
}
more help you can visit dapfor. com

chinujhon 1Dec2012 13:01

Re: Data Types in C#
 
Its very nice and interested discussion. Please add more information about reference types.


All times are GMT +5.5. The time now is 06:49.