<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DLR Hosting and related stuff... : .NET FW &amp;amp; Runtime</title><link>http://blogs.msdn.com/seshadripv/archive/tags/.NET+FW+_2600_amp_3B00_+Runtime/default.aspx</link><description>Tags: .NET FW &amp;amp; Runtime</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Here's .NET framework 3.0</title><link>http://blogs.msdn.com/seshadripv/archive/2006/06/10/624657.aspx</link><pubDate>Sat, 10 Jun 2006 04:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:624657</guid><dc:creator>seshadripv</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/seshadripv/comments/624657.aspx</comments><wfw:commentRss>http://blogs.msdn.com/seshadripv/commentrss.aspx?PostID=624657</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;WinFX will hence be called .NET Framework 3.0. Read more about this at &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/somasegar/archive/2006/06/09/624300.aspx"&gt;&lt;U&gt;&lt;FONT color=#0000ff&gt;&lt;FONT face=Verdana size=2&gt;Soma&lt;/FONT&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;'s blog and find answers to some questions on this at &lt;/FONT&gt;&lt;A href="https://blogs.msdn.com/jasonz/archive/2006/06/09/624629.aspx"&gt;&lt;U&gt;&lt;FONT color=#0000ff&gt;&lt;FONT face=Verdana size=2&gt;jasonz&lt;/FONT&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;'s blog. Soma is the VP of Dev Div and Jason is the GM for the .NET FW – Dev FX group. So please let them have your whatever comments/feedback you have.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=624657" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/seshadripv/archive/tags/.NET+FW+_2600_amp_3B00_+Runtime/default.aspx">.NET FW &amp;amp; Runtime</category></item><item><title>Power Toys - Develop Applications for .NET Framework 1.1 using Visual Studio 2005</title><link>http://blogs.msdn.com/seshadripv/archive/2006/06/09/623871.aspx</link><pubDate>Fri, 09 Jun 2006 17:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:623871</guid><dc:creator>seshadripv</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/seshadripv/comments/623871.aspx</comments><wfw:commentRss>http://blogs.msdn.com/seshadripv/commentrss.aspx?PostID=623871</wfw:commentRss><description>&lt;FONT face=Verdana size=2&gt;&lt;FONT size=2&gt;
&lt;P&gt;I had earlier &lt;/FONT&gt;&lt;A href="https://blogs.msdn.com/seshadripv/archive/2006/02/24/538610.aspx"&gt;&lt;U&gt;&lt;FONT color=#0000ff size=2&gt;blogged&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; about not being able to develop applications for .NET Framework 1.1 using Visual Studio 2005. Now there is some great news on this.&lt;/P&gt;
&lt;P&gt;As part of the &lt;/FONT&gt;&lt;A href="http://www.microsoft.com/resources/sharedsource/default.mspx"&gt;&lt;U&gt;&lt;FONT color=#0000ff size=2&gt;Microsoft’s Shared Source initiative&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; ‘PowerToys V 1.0’ for VisualStudio 2005 was released recently. One of the components in that – "&lt;/FONT&gt;&lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=MSBee"&gt;&lt;U&gt;&lt;FONT color=#0000ff size=2&gt;MSBee&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;" enables developers to target .NET FW 1.1 using VisualStudio 2005. This means you don’t have to upgrade your .NET 1.1 apps just because you needed some of the cool new features in VisualStudio 2005. Check out a couple of other cool tools also – &lt;/FONT&gt;&lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=TFSAdmin"&gt;&lt;U&gt;&lt;FONT color=#0000ff size=2&gt;Team Foundation Server Admin Tool&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; and &lt;/FONT&gt;&lt;A href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=MSE"&gt;&lt;U&gt;&lt;FONT color=#0000ff size=2&gt;Managed Stack Explorer&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=623871" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/seshadripv/archive/tags/.NET+FW+_2600_amp_3B00_+Runtime/default.aspx">.NET FW &amp;amp; Runtime</category></item><item><title>System.FormatException while parsing a string containing valid integer values</title><link>http://blogs.msdn.com/seshadripv/archive/2006/03/09/547139.aspx</link><pubDate>Thu, 09 Mar 2006 16:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:547139</guid><dc:creator>seshadripv</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/seshadripv/comments/547139.aspx</comments><wfw:commentRss>http://blogs.msdn.com/seshadripv/commentrss.aspx?PostID=547139</wfw:commentRss><description>&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" face=Verdana color=#000000&gt;Trying to convert&amp;nbsp;a value to an integer using the Parse function might throw a "System.FormatException" with the&amp;nbsp;following&amp;nbsp;following call stack. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" face=Verdana color=#0000ff&gt;Unhandled Exception: System.FormatException: Input string was not in a correct format.&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp;amp; number, NumberFormatInfo info, Boolean parseDecimal)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info)&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Verdana color=#0000ff&gt;&amp;nbsp;&amp;nbsp; [...] ( application specific callstack)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000000&gt;This could arise from a call to one of the Convert.ToIntxx functions ( viz.,ToInt16, ToInt32, ToInt64) or the Intxx.Parse()( Int16.Parse, Int32.Parse or Int64.parse)&amp;nbsp;. The exception is not thrown for any value other than 0.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000000&gt;This is due to corruption of a registry key's value that deals with globalization settings. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT color=#000000&gt;The registry key "sPositiveSign" under HKEY_CURRENT_USER\Control Panel\International should be blank for this to work correctly. If this is set to 0 the above exception will occur. Change this value to " " in the registry key to correct this exception. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000000&gt;Note that whenever the value that is parsed is the same as the value for the 'sPositiveSign' item this exception is thrown.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000000&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=547139" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/seshadripv/archive/tags/.NET+FW+_2600_amp_3B00_+Runtime/default.aspx">.NET FW &amp;amp; Runtime</category></item><item><title>Auto increment the build number in the 'AssemblyVersion'</title><link>http://blogs.msdn.com/seshadripv/archive/2005/12/20/505889.aspx</link><pubDate>Tue, 20 Dec 2005 17:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:505889</guid><dc:creator>seshadripv</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/seshadripv/comments/505889.aspx</comments><wfw:commentRss>http://blogs.msdn.com/seshadripv/commentrss.aspx?PostID=505889</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;FONT color=#808080&gt;Q) How to auto-increment the build number of the ‘AssemblyVersion’ in a managed application?&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;A)&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;Locate the AssemblyInfo.cs (or VB) file and make the following change - [assembly: &lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;FONT color=#008080 size=2&gt;AssemblyVersion&lt;/FONT&gt;&lt;/FONT&gt;("1.0.*")] – Voila!!! The assemblyversion should now automatically change after each build. However, be warned – changing the buildnumber in a class library would result in the recompilation of all dependent assemblies.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=505889" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/seshadripv/archive/tags/.NET+FW+_2600_amp_3B00_+Runtime/default.aspx">.NET FW &amp;amp; Runtime</category></item><item><title>Serializing an object of the KeyValuePair Generic class</title><link>http://blogs.msdn.com/seshadripv/archive/2005/11/02/488273.aspx</link><pubDate>Wed, 02 Nov 2005 18:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:488273</guid><dc:creator>seshadripv</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/seshadripv/comments/488273.aspx</comments><wfw:commentRss>http://blogs.msdn.com/seshadripv/commentrss.aspx?PostID=488273</wfw:commentRss><description>&lt;P&gt;Consider the following piece of C# code running in .NET framework 2.0&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;FONT color=#0000ff&gt;static void&lt;/FONT&gt; Main(string[] args) &lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;FONT color=#006400&gt;List&lt;/FONT&gt;&amp;lt;&lt;FONT color=#008000&gt;KeyValuePair&lt;/FONT&gt;&amp;lt;&lt;FONT color=#0000ff&gt;string&lt;/FONT&gt;, &lt;FONT color=#0000ff&gt;int&lt;/FONT&gt;&amp;gt;&amp;gt; foobar = new &lt;FONT color=#008000&gt;List&lt;/FONT&gt;&amp;lt;&lt;FONT color=#008000&gt;KeyValuePair&lt;/FONT&gt;&amp;lt;&lt;FONT color=#0000ff&gt;string&lt;/FONT&gt;, &lt;FONT color=#0000ff&gt;int&lt;/FONT&gt;&amp;gt;&amp;gt;();&lt;BR&gt;&amp;nbsp;&amp;nbsp; foobar.Add(&lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#008000&gt;KeyValuePair&lt;/FONT&gt;&amp;lt;&lt;FONT color=#0000ff&gt;string&lt;/FONT&gt;, &lt;FONT color=#0000ff&gt;int&lt;/FONT&gt;&amp;gt;("&lt;FONT color=#a52a2a&gt;test1&lt;/FONT&gt;", 1));&lt;BR&gt;&amp;nbsp;&amp;nbsp; foobar.Add(&lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#008000&gt;KeyValuePair&lt;/FONT&gt;&amp;lt;&lt;FONT color=#0000ff&gt;string&lt;/FONT&gt;, &lt;FONT color=#0000ff&gt;int&lt;/FONT&gt;&amp;gt;("&lt;FONT color=#a52a2a&gt;test2&lt;/FONT&gt;", 2));&lt;/SPAN&gt; 
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;XmlSerializer&lt;/FONT&gt; serializer = &lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#008000&gt;XmlSerializer&lt;/FONT&gt;(&lt;FONT color=#0000ff&gt;typeof&lt;/FONT&gt;(List&amp;lt;&lt;FONT color=#008000&gt;KeyValuePair&lt;/FONT&gt;&amp;lt;&lt;FONT color=#0000ff&gt;string&lt;/FONT&gt;, &lt;FONT color=#0000ff&gt;int&lt;/FONT&gt;&amp;gt;&amp;gt;));&lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;using&lt;/FONT&gt; (&lt;FONT color=#008000&gt;Stream&lt;/FONT&gt; stm = &lt;FONT color=#008000&gt;File&lt;/FONT&gt;.Create("foo.txt"))&lt;BR&gt;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serializer.Serialize(stm, foobar);&lt;BR&gt;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P&gt;'KeyValuePair' is a new generic class that has been added to the .NET framework in version 2.0. BTW i think KeyValuePair is the second most natural and 'easy-to-guess-usage' name in programming jargon.( The hands down winner is 'int').&lt;/P&gt;
&lt;P&gt;On successful execution the expected output is &lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR&gt;&amp;lt;ArrayOfKeyValuePairOfStringInt32 xmlns:xsi="&lt;/FONT&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;FONT color=#0000ff&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#0000ff&gt;" xmlns:xsd="&lt;/FONT&gt;&lt;A href="http://www.w3.org/2001/XMLSchema"&gt;&lt;FONT color=#0000ff&gt;http://www.w3.org/2001/XMLSchema&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#0000ff&gt;"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;KeyValuePairOfStringInt32&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;key&amp;gt;test1&amp;lt;/key&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/KeyValuePairOfStringInt32&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;KeyValuePairOfStringInt32&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;key&amp;gt;test2&amp;lt;/key&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;2&amp;lt;/value&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/KeyValuePairOfStringInt32&amp;gt;&lt;BR&gt;&amp;lt;/ArrayOfKeyValuePairOfStringInt32&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;But the output you would see is &lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR&gt;&amp;lt;ArrayOfKeyValuePairOfStringInt32 xmlns:xsi="&lt;/FONT&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;FONT color=#0000ff&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#0000ff&gt;" xmlns:xsd="&lt;/FONT&gt;&lt;A href="http://www.w3.org/2001/XMLSchema"&gt;&lt;FONT color=#0000ff&gt;http://www.w3.org/2001/XMLSchema&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#0000ff&gt;"&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;KeyValuePairOfStringInt32 /&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;KeyValuePairOfStringInt32 /&amp;gt;&lt;BR&gt;&amp;lt;/ArrayOfKeyValuePairOfStringInt32&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;As we clearly see neither the value nor the key gets serialized. If you had played around with the beta bits of VS 2005 and .NET FW 2.0 you would have had the key and value serializing properly.&lt;/P&gt;
&lt;P&gt;BTW, Robert Wlodarczyk(who runs this cool blog - &lt;A href="http://blogs.msdn.com/rwlodarc/"&gt;http://blogs.msdn.com/rwlodarc/&lt;/A&gt;) ran in to this issue in his real world app and narrowed it down to the KeyValuePair. If you are a die hard Imaging and media fan excited about Avalon/WinFX, you've got to bookmark his blog.&lt;/P&gt;
&lt;P&gt;The issue turns out to be the following&lt;BR&gt;1) The 'key' and 'value' members are implemented as 'Read-only' properties in .NET FW 2.0. They dont have a set accessor method.&lt;BR&gt;2) The XmlSerializer class, by design, will not serialize read-only properties. In other words, properties that don't have a set accessor will not be serialized using the XmlSerializer class. Note that, you can trick the serializer in to doing the job by having an 'empty' set accessor function for a property of your class.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;From (1) and (2) it turns out that the KeyValuePair cannot be meaningfully serialized. &lt;BR&gt;Also, You can suspect this to be the issue if you run in to cases of missing members during serialization of the Framework classes( or third party classes without source code).&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=488273" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/seshadripv/archive/tags/.NET+FW+_2600_amp_3B00_+Runtime/default.aspx">.NET FW &amp;amp; Runtime</category></item><item><title>5 quick questions on Custom Attributes</title><link>http://blogs.msdn.com/seshadripv/archive/2005/10/19/482590.aspx</link><pubDate>Wed, 19 Oct 2005 13:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:482590</guid><dc:creator>seshadripv</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/seshadripv/comments/482590.aspx</comments><wfw:commentRss>http://blogs.msdn.com/seshadripv/commentrss.aspx?PostID=482590</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: blue"&gt;1) What are custom attributes?&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;Attributes are instances of a Type. Attributes are just like any other class object except that they allow some special syntax. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;2) Are attributes an alternate way of specifying a base class for a class? Inside an attributed class can I call the attribute’s method just like a base class method?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;No. Even from inside an attributed class we cannot call an attribute’s member function without having an attribute object( as in &amp;lt;object&amp;gt;.SomeMethod() ). This sounds like an obvious statement. But this shows that attributes are not ‘base classes’ and an attributed class doesn’t derive from the attribute class. Normally, we will be able to call the base class methods from inside a derived class without having any object( or by using the Base keyword).&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;3) So, How are attributes connected to a class?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;Attributes are some kind of special &lt;B&gt;MEMBERS &lt;/B&gt;of the attributed class. Attributes are native to .NET and they get their own semantics. However there don’t seem to be a direct way to access the attribute instances. We have to go through GetCustomAttributes function to get the attribute instance and invoke its methods.&amp;nbsp;ILDasm comes up with this for an attribute &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;EM&gt;&lt;FONT color=#ff0000&gt;.custom instance void Attrib.MyAttrib::ctor() = ( 01 00 00 00 )&lt;/FONT&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;Attrib is the namespace, MyAttrib the attribute.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;4) I have defined my attribute class and applied it to a class. Is that all?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;There is no effect on just attributing a class unless somebody\something checks whether a particular attribute is present and do some action based on that. Its like marking a statement in C/C++ with a label. Unless somebody uses a ‘GOTO’ statement, the label is pretty much useless. Using the label alone has no effect on the code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;5) Can I apply attributes only to Classes?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;Attributes can be applied to data and method members of a class also. This again means that attributes are some kind of a special entity in .NET and it really doesn’t have any counterparts in classic C++.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;Refer to Applied Microsoft.NET Framework Programming by Jeffrey Richter for some excellent coverage on Attributes( and lot of other stuff.NET)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=482590" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/seshadripv/archive/tags/.NET+FW+_2600_amp_3B00_+Runtime/default.aspx">.NET FW &amp;amp; Runtime</category></item></channel></rss>