<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'confusion with System.dll and mscorlib.dll' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'confusion with System.dll and mscorlib.dll' posted on the 'VB.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 04:34:44 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 04:34:44 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>confusion with System.dll and mscorlib.dll</title>
      <link>http://www.programmersheaven.com/mb/VBNET/268108/268108/confusion-with-systemdll-and-mscorlibdll/</link>
      <description>&lt;br /&gt;
Both the questions are from "VB.NET"&lt;br /&gt;
Q1:&lt;br /&gt;
&lt;br /&gt;
im a bit of a confusion with the "System.dll" and  &lt;br /&gt;
"mscorlib.dll" files because of the folowing&lt;br /&gt;
reason.&lt;br /&gt;
&lt;br /&gt;
Math class is in the "System" namespace and when you&lt;br /&gt;
click on the "System" namespace from the solution explorer &lt;br /&gt;
it display the assembly of the "System" namespace as System.dll&lt;br /&gt;
in the property box.&lt;br /&gt;
But according to the MSDN the assembly for "System" namespace&lt;br /&gt;
is "mscorlib.dll".&lt;br /&gt;
&lt;br /&gt;
I know the above mention information is bit confusing However&lt;br /&gt;
my question is, are these two assemblies(System.dll and mscorlib.dll) &lt;br /&gt;
reffers to the mscorlib.dll assembly or they are two different kinds?&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Q2:&lt;br /&gt;
&lt;br /&gt;
Module mod1&lt;br /&gt;
&lt;br /&gt;
Dim i As Interger = 7&lt;br /&gt;
&lt;br /&gt;
Sub Main()&lt;br /&gt;
&lt;br /&gt;
in the MessageBox.Show("message" &amp;amp; i, "title")&lt;br /&gt;
&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
End Module&lt;br /&gt;
&lt;br /&gt;
Does the Show() casts the value of the i to a &lt;br /&gt;
string before concatenation?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/268108/268108/confusion-with-systemdll-and-mscorlibdll/</guid>
      <pubDate>Tue, 27 Jul 2004 09:21:00 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: confusion with System.dll and mscorlib.dll</title>
      <link>http://www.programmersheaven.com/mb/VBNET/268108/268316/re-confusion-with-systemdll-and-mscorlibdll/#268316</link>
      <description>: &lt;br /&gt;
: Both the questions are from "VB.NET"&lt;br /&gt;
: Q1:&lt;br /&gt;
: &lt;br /&gt;
: im a bit of a confusion with the "System.dll" and  &lt;br /&gt;
: "mscorlib.dll" files because of the folowing&lt;br /&gt;
: reason.&lt;br /&gt;
: &lt;br /&gt;
: Math class is in the "System" namespace and when you&lt;br /&gt;
: click on the "System" namespace from the solution explorer &lt;br /&gt;
: it display the assembly of the "System" namespace as System.dll&lt;br /&gt;
: in the property box.&lt;br /&gt;
: But according to the MSDN the assembly for "System" namespace&lt;br /&gt;
: is "mscorlib.dll".&lt;br /&gt;
: &lt;br /&gt;
: I know the above mention information is bit confusing However&lt;br /&gt;
: my question is, are these two assemblies(System.dll and mscorlib.dll) &lt;br /&gt;
: reffers to the mscorlib.dll assembly or they are two different kinds?&lt;br /&gt;
: &lt;br /&gt;
: --------------------------------------------------------------&lt;br /&gt;
: &lt;br /&gt;
: Q2:&lt;br /&gt;
: &lt;br /&gt;
: Module mod1&lt;br /&gt;
: &lt;br /&gt;
: Dim i As Interger = 7&lt;br /&gt;
: &lt;br /&gt;
: Sub Main()&lt;br /&gt;
: &lt;br /&gt;
: in the MessageBox.Show("message" &amp;amp; i, "title")&lt;br /&gt;
: &lt;br /&gt;
: End Sub&lt;br /&gt;
: &lt;br /&gt;
: End Module&lt;br /&gt;
: &lt;br /&gt;
: Does the Show() casts the value of the i to a &lt;br /&gt;
: string before concatenation?&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
The mscorlib.dll is the main dll that defines all the base types and then some. System.dll builds on it. Multiple dll's are capable of defining objects that fall under the same namespace. So in many cases, you will find that multiple dll's will make up the definition of a namespace.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/268108/268316/re-confusion-with-systemdll-and-mscorlibdll/#268316</guid>
      <pubDate>Wed, 28 Jul 2004 07:17:16 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: confusion with System.dll and mscorlib.dll</title>
      <link>http://www.programmersheaven.com/mb/VBNET/268108/268378/re-confusion-with-systemdll-and-mscorlibdll/#268378</link>
      <description>Re your Q2, the variable i remains as an Integer type, even though you have concatenated it into your messagebox string.&lt;br /&gt;
&lt;br /&gt;
You can test this by inserting a breakpoint immediately after the messagebox code line and checking the Locals Window from the Debug menu.&lt;br /&gt;
You will see that it still appears as an integer with a value of 7.&lt;br /&gt;
&lt;br /&gt;
If you want to create a string to hold message numbers, (perhaps because you want to compare this string against another one, you can do something like this:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
 Dim msgnumber As String = CStr("message" &amp;amp; i)
 If msgnumber = "message7" Then
    '  some code here
 End If
&lt;/pre&gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/268108/268378/re-confusion-with-systemdll-and-mscorlibdll/#268378</guid>
      <pubDate>Wed, 28 Jul 2004 13:56:53 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: confusion with System.dll and mscorlib.dll</title>
      <link>http://www.programmersheaven.com/mb/VBNET/268108/430960/re-confusion-with-systemdll-and-mscorlibdll/#430960</link>
      <description>Hi Japher,&lt;br /&gt;
I have an simple answer to your second question. pardon me if am wrong.&lt;br /&gt;
&lt;br /&gt;
you are concatenating a string and an integer. the integer will be casted to string in this case.&lt;br /&gt;
&lt;span style="text-decoration: underline;"&gt;proof:  &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If we want to the result of the concatenating ( string + int ) in a variable, then the variable should be of string data type ( it cant be of int datatype ).&lt;br /&gt;
&lt;br /&gt;
String s = "Record count";&lt;br /&gt;
int i = 10;&lt;br /&gt;
String Count = s + i;  // correct&lt;br /&gt;
int Count = s + i; // error&lt;br /&gt;
&lt;br /&gt;
Hope you understand. Correct me if am wrong.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/268108/430960/re-confusion-with-systemdll-and-mscorlibdll/#430960</guid>
      <pubDate>Thu, 17 Jan 2013 21:33:44 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: confusion with System.dll and mscorlib.dll</title>
      <link>http://www.programmersheaven.com/mb/VBNET/268108/430961/re-confusion-with-systemdll-and-mscorlibdll/#430961</link>
      <description>Hi Japher,&lt;br /&gt;
I have an simple answer to your second question. pardon me if am wrong.&lt;br /&gt;
&lt;br /&gt;
you are concatenating a string and an integer. the integer will be casted to string in this case.&lt;br /&gt;
&lt;span style="text-decoration: underline;"&gt;proof:  &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If we want to the store result of the concatenating ( string + int ) in a variable, then the variable should be of string data type ( it cant be of int datatype ).&lt;br /&gt;
&lt;br /&gt;
String s = "Record count";&lt;br /&gt;
int i = 10;&lt;br /&gt;
String Count = s + i;  // correct&lt;br /&gt;
int Count = s + i; // error&lt;br /&gt;
&lt;br /&gt;
Hope you understand. Correct me if am wrong.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/268108/430961/re-confusion-with-systemdll-and-mscorlibdll/#430961</guid>
      <pubDate>Thu, 17 Jan 2013 21:35:34 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: confusion with System.dll and mscorlib.dll</title>
      <link>http://www.programmersheaven.com/mb/VBNET/268108/430962/re-confusion-with-systemdll-and-mscorlibdll/#430962</link>
      <description>Hi Japher,&lt;br /&gt;
I have an simple answer to your second question. pardon me if am wrong.&lt;br /&gt;
&lt;br /&gt;
you are concatenating a string and an integer. the integer will be casted to string in this case.&lt;br /&gt;
&lt;span style="text-decoration: underline;"&gt;proof:  &lt;/span&gt;   &lt;br /&gt;
&lt;br /&gt;
I am using C# syntax&lt;br /&gt;
&lt;br /&gt;
If we want to the store result of the concatenation ( string + int ) in a variable, then the variable should be of string data type ( it cant be of int datatype ).&lt;br /&gt;
&lt;br /&gt;
String s = "Record count";&lt;br /&gt;
int i = 10;&lt;br /&gt;
String Count = s + i;  // correct&lt;br /&gt;
int Count = s + i; // error&lt;br /&gt;
&lt;br /&gt;
Hope you understand. Correct me if am wrong.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/268108/430962/re-confusion-with-systemdll-and-mscorlibdll/#430962</guid>
      <pubDate>Thu, 17 Jan 2013 21:38:21 -0700</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>