<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2311375443586699387</id><updated>2024-12-18T19:23:26.914-08:00</updated><category term="ASP.NET"/><category term="C#"/><category term="SQL Server"/><category term=".NET Framework"/><category term="WCF"/><category term="Javascript"/><category term="Web Services"/><category term="LINQ"/><category term="AJAX"/><category term="Unix shell scripts"/><category term="XML"/><category term="ADO.NET"/><category term="COM Components"/><category term="Design Patterns"/><category term="OOPS"/><category term="Project Management"/><category term="UML"/><category term="C# 3.0 Enhancements"/><category term="Oracle"/><category term="SSIS"/><category term="SSRS"/><title type='text'>Welcome Visitor to Tech-Interviews</title><subtitle type='html'>This site will help you clear technical interviews</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default?start-index=26&amp;max-results=25'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>166</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-316023777238366444</id><published>2010-12-26T02:29:00.000-08:00</published><updated>2010-12-26T02:29:48.647-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>What are few Oracle DDL statements or commands ?</title><summary type="text">Below are few &amp;nbsp;DDL commands to create, alter, drop, and rename tables. 
CREATE TABLE
Create a table. 
Create a table based on another table by using a subquery.

&amp;nbsp;ALTER TABLE
Modify table structures. 
Change column widths, change column data types, and add columns.

&amp;nbsp;DROP TABLE

Remove rows and a table structure. 
Once executed, this statement cannot be rolled back.

&amp;nbsp;RENAME

</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/316023777238366444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/316023777238366444' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/316023777238366444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/316023777238366444'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/12/what-are-few-oracle-ddl-statements-or.html' title='What are few Oracle DDL statements or commands ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-7520673130224740393</id><published>2010-12-16T08:49:00.000-08:00</published><updated>2010-12-16T09:00:10.784-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>How to round off decimal to two decimal places in C# ?</title><summary type="text">There are 3 ways to round off decimal to two decimal places :

1. Use ToString()
&amp;nbsp;double&amp;nbsp;&amp;nbsp;d = 2.445; 
&amp;nbsp;d.ToString(&quot;0.00&quot;)

Output : 2.45

2. Use Math.Round

double d = 2.445; 

Math.Round(d, 2)

Output : 2.44

3. Create a Custom logic method like below :

N = 2.445 I want to show &quot;2.45&quot; only.

Step a. N*100 + 0.5 = 245
Step b. Divide System.Math.Floor(245) by 100
Step c. The </summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/7520673130224740393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/7520673130224740393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/7520673130224740393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/7520673130224740393'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/12/how-to-round-off-decimal-to-two-decimal.html' title='How to round off decimal to two decimal places in C# ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-3762226587894631174</id><published>2010-11-06T09:47:00.000-07:00</published><updated>2010-11-06T09:47:37.655-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Question : Which property of the image control should you use to set the descriptive text?</title><summary type="text">Answer : AlternateText</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/3762226587894631174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/3762226587894631174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/3762226587894631174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/3762226587894631174'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/11/question-which-property-of-image.html' title='Question : Which property of the image control should you use to set the descriptive text?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-5534192787652522347</id><published>2010-11-06T09:36:00.000-07:00</published><updated>2010-11-06T09:38:52.047-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'></title><summary type="text">Question :

Your development team is working on a large scale .Net project that has multiple assemblies and code files. Before releasing the software as a Beta product, you and the team are testing classes and assemblies for bugs. Most methods have been programmed to just catch the exception without logging any information. You now want to change this so that information about the sequence of </summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/5534192787652522347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/5534192787652522347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/5534192787652522347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/5534192787652522347'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/11/question-your-development-team-is.html' title=''/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-1856248701536839932</id><published>2010-11-06T09:32:00.000-07:00</published><updated>2010-11-06T09:33:09.886-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'></title><summary type="text">Question :&amp;nbsp;You and a group of programmers have written a new web application using Visual Studio.NET for a new client. The application tracks charity donations for a well known charity company. Due to the nature of the data it is vital that the server maintains session state even if the Web server crashes and needs to be restarted.

Which alternative is it best to use to store session state </summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/1856248701536839932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/1856248701536839932' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/1856248701536839932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/1856248701536839932'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/11/question-and-group-of-programmers-have.html' title=''/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-1264724366009694831</id><published>2010-09-30T07:30:00.000-07:00</published><updated>2010-09-30T07:30:40.609-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Difference between Web farm and Web Garden</title><summary type="text">A Web farm allows you to expand a Web Site across multiple servers whereas A Web garden allows you to expand a Web Site across multiple CPUs within a single server.</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/1264724366009694831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/1264724366009694831' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/1264724366009694831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/1264724366009694831'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/09/difference-between-web-farm-and-web.html' title='Difference between Web farm and Web Garden'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-6382212587970196982</id><published>2010-09-21T11:57:00.000-07:00</published><updated>2010-09-21T11:58:09.787-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>State why we create custom HTTPModule ?</title><summary type="text">Custom HTTPmodule is created for:

URL rewriting
Compression
Specialized authentication and authorization 
Specialized logging
</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/6382212587970196982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/6382212587970196982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/6382212587970196982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/6382212587970196982'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/09/state-why-we-create-custom-httpmodule.html' title='State why we create custom HTTPModule ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-5581916927674479925</id><published>2010-09-13T12:28:00.000-07:00</published><updated>2010-09-13T12:28:29.961-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>What is params keyword in C# ?</title><summary type="text">The params keyword lets you specify a method parameter that takes a variable number of arguments.

No additional parameters are permitted after the params keyword in a method declaration, and only one params keyword is permitted in a method declaration.

You can send a comma-separated list of arguments of the type specified in the parameter declaration, or an array of arguments of the specified </summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/5581916927674479925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/5581916927674479925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/5581916927674479925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/5581916927674479925'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/09/what-is-params-keyword-in-c.html' title='What is params keyword in C# ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-1697676634426655668</id><published>2010-09-13T12:18:00.000-07:00</published><updated>2010-09-13T12:18:28.195-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>What is CharEnumerator in C# ?</title><summary type="text">CharEnumerator is an object in C# that can be used to enumerate through all the characters of a string. 

Sample Code :

string str = &quot;santosh&quot;;

CharEnumerator chs = str.GetEnumerator();
while(chs.MoveNext())
{
Response.Write(chs.Current);
}</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/1697676634426655668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/1697676634426655668' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/1697676634426655668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/1697676634426655668'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/09/what-is-charenumerator-in-c.html' title='What is CharEnumerator in C# ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-4204544165617641317</id><published>2010-09-13T12:14:00.000-07:00</published><updated>2010-09-13T12:14:53.007-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Difference between RegisterStartUpScript and RegisterClientScriptBlock  ?</title><summary type="text">RegisterStartUpScript 
This adds the javascript code at the end of the page before the closing of form tag.

RegisterClientScriptBlock 
This adds the javascript code at the top of the page.</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/4204544165617641317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/4204544165617641317' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/4204544165617641317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/4204544165617641317'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/09/difference-between-registerstartupscrip.html' title='Difference between RegisterStartUpScript and RegisterClientScriptBlock  ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-8140726191883442309</id><published>2010-08-29T10:08:00.001-07:00</published><updated>2010-08-29T10:13:01.984-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>What’s the Difference Between &amp;lt%# i %&amp;gt and &amp;lt%= i %&amp;gt?</title><summary type="text">We can use two constructs to access page-level variables in an ASP.NET web template:
data binding syntax
Data binding—the hierarchical mapping of control properties to data container values—is specified by the &lt;%# … %&gt; tags. Code located within a 
&lt;%# … %&gt;code block is only executed when the DataBind method of its parent controlcontainer is invoked.

code rendering syntax
The &lt;%= … %&gt; code tags </summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/8140726191883442309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/8140726191883442309' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/8140726191883442309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/8140726191883442309'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/whats-difference-between-and.html' title='What’s the Difference Between &amp;lt%# i %&amp;gt and &amp;lt%= i %&amp;gt?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-4541861455870358284</id><published>2010-08-28T12:54:00.000-07:00</published><updated>2010-08-28T12:54:29.832-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Difference between Static and Instance Constructor ?</title><summary type="text">The static constructor executes at most once in a given application domain. The execution of a static constructor is triggered by the first of the following events to occur within an application domain:
• An instance of the class type is created.
• Any of the static members of the class type are referenced.
where as
Instance constructor can execute more than once.
Instance constructor executes </summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/4541861455870358284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/4541861455870358284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/4541861455870358284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/4541861455870358284'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/difference-between-static-and-instance.html' title='Difference between Static and Instance Constructor ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-3774977665827297037</id><published>2010-08-28T12:52:00.000-07:00</published><updated>2010-08-28T12:52:53.747-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>What is use of private constructor in C# ?</title><summary type="text">If a class contains only static members and isn’t intended to be instantiated, adding an empty private instance constructor will prevent instantiation.</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/3774977665827297037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/3774977665827297037' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/3774977665827297037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/3774977665827297037'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/what-is-use-of-private-constructor-in-c.html' title='What is use of private constructor in C# ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-24666893124705565</id><published>2010-08-28T10:41:00.000-07:00</published><updated>2010-08-28T10:41:03.376-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>State whether the C# code : var z = null;   is okay or not ?</title><summary type="text">Above code would give an error as null does not have type</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/24666893124705565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/24666893124705565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/24666893124705565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/24666893124705565'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/state-whether-c-code-var-z-null-is-okay.html' title='State whether the C# code : var z = null;   is okay or not ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-7121484471347869346</id><published>2010-08-28T10:20:00.000-07:00</published><updated>2010-08-28T10:20:16.100-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Question : State whether below code would give compilation error or not ?</title><summary type="text">delegate string Delegate1(object o);
        delegate object Delegate2(string s);
        static string Dispaly(object o) {
            return &quot;Display&quot;;
        }
        static void Main(string[] args)
        {
            Delegate1 d1 = Display;               
            Delegate2 d2 = Display;               
        }

Answer :
 It will give no compilation error .</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/7121484471347869346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/7121484471347869346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/7121484471347869346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/7121484471347869346'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/question-state-whether-below-code-would.html' title='Question : State whether below code would give compilation error or not ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-7441237905271877184</id><published>2010-08-28T08:38:00.000-07:00</published><updated>2010-08-28T08:38:25.245-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Question : State whether below overload methods will give compilation erro or not ?</title><summary type="text">Class Test
{
void SetX(ref int x)
{
   x = 1;
}    
void SetX(out int x)
{
   X = 2;
}
}

Answer :
Gives a compilation error.
SetX method cannot define overloaded methods that differ only on ref and out</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/7441237905271877184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/7441237905271877184' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/7441237905271877184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/7441237905271877184'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/question-state-whether-below-overload.html' title='Question : State whether below overload methods will give compilation erro or not ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-980602669702747570</id><published>2010-08-28T08:24:00.000-07:00</published><updated>2010-08-28T08:24:36.976-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Question : Whether b.x =1 statement in class A and class B is okay or not ?</title><summary type="text">public class A
    {
        int x;
        static void SetX(B b)
        {
            b.x = 1;          }
    }
    public class B : A
    {
        static void SetX(B b)
        {
            b.x = 1;  
        }
    }

Answer :
b.x = 1 in Class A is fine. 
b.x = 1 in Class B gives compilation error

Help :
As x is private field in Class A hence accessible within Class A
As x is private field </summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/980602669702747570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/980602669702747570' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/980602669702747570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/980602669702747570'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/question-whether-bx-1-statement-in.html' title='Question : Whether b.x =1 statement in class A and class B is okay or not ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-2650947852744570989</id><published>2010-08-28T08:11:00.000-07:00</published><updated>2010-08-28T08:11:17.708-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Can namespace declaration have access modifiers ?</title><summary type="text">No . Namespace declaration cannot have access modifiers.

Help 

Namespaces implicitly have public declared accessibility. No access modifiers and attributes&amp;nbsp;are allowed on namespace declarations</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/2650947852744570989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/2650947852744570989' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/2650947852744570989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/2650947852744570989'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/can-namespace-declaration-have-access.html' title='Can namespace declaration have access modifiers ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-3619664976251384135</id><published>2010-08-28T07:58:00.000-07:00</published><updated>2010-08-28T07:58:29.926-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Is static void Main(int a) {...} a valid entry point for C# program ?</title><summary type="text">Answer : No

Hint :

Entry point method is always named Main, and can have one of the following signatures:


static void Main() {...}

static void Main(string[] args) {...}

static int Main() {...}

static int Main(string[] args) {...}

The entry point may optionally have one formal parameter. The parameter may have any name, but the type of the parameter must be string[].</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/3619664976251384135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/3619664976251384135' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/3619664976251384135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/3619664976251384135'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/is-static-void-mainint-a-valid-entry.html' title='Is static void Main(int a) {...} a valid entry point for C# program ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-2183143175161683953</id><published>2010-08-27T10:38:00.000-07:00</published><updated>2010-08-27T10:38:50.969-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>How to create read only property in C# ?</title><summary type="text">A&amp;nbsp;property that has only a get accessor is a read-only property .

Example :
public int Count {


get { return count; }

}

public int Capacity {

get {

return items.Length;

}
}</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/2183143175161683953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/2183143175161683953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/2183143175161683953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/2183143175161683953'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/how-to-create-read-only-property-in-c.html' title='How to create read only property in C# ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-8917831609376499649</id><published>2010-08-27T09:38:00.000-07:00</published><updated>2010-08-27T09:38:18.341-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>What are parameter array ? How is parameter array declared ?</title><summary type="text">A parameter array allows variable number of arguments to be passed to a method. A parameter array is declared with the params modifier. Only the last parameter of a method can be a parameter array, and the type of a parameter array must be a single-dimensional array type. 

Example :

public static void DisplayEmployeeDetails(string name, params object[] args) {...}</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/8917831609376499649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/8917831609376499649' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/8917831609376499649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/8917831609376499649'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/what-are-parameter-array-how-is.html' title='What are parameter array ? How is parameter array declared ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-6859116709197474152</id><published>2010-08-27T09:24:00.000-07:00</published><updated>2010-08-27T09:24:18.758-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>State different types of method parameters in C# ?</title><summary type="text">Different type of method parameters in C# are :

&amp;nbsp;Value Parameter 
Reference Parameter
Output Parameter
</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/6859116709197474152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/6859116709197474152' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/6859116709197474152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/6859116709197474152'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/state-different-types-of-method.html' title='State different types of method parameters in C# ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-2718192721577168615</id><published>2010-08-10T09:40:00.001-07:00</published><updated>2010-08-22T02:21:33.343-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>State differences between BasicHttpBinding and WsHttpBinding ?</title><summary type="text">
Criteria BasicHttpBinding WsHttpBinding 

Security support This supports the old ASMX style, i.e. WS-BasicProfile 1.1. This exposes web services using WS-* specifications.
Compatibility This is aimed for clients who do not have .NET 3.0 installed and it supports wider ranges of clients. Many of the clients like Windows 2000 still do not run .NET 3.0. So older version of .NET can consume this </summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/2718192721577168615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/2718192721577168615' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/2718192721577168615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/2718192721577168615'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/state-differences-between.html' title='State differences between BasicHttpBinding and WsHttpBinding ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-745382098349910286</id><published>2010-08-08T11:58:00.000-07:00</published><updated>2010-08-08T11:58:29.202-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Web Services"/><title type='text'>State few WebService attribute in XML Web Service ?</title><summary type="text">Various WebService attributes are :
NameSpace : Specifies the namespace, which defaults to &quot;http://tempuri.org&quot;, 
Description : Specifies description text for the XML Web service
</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/745382098349910286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/745382098349910286' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/745382098349910286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/745382098349910286'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/state-few-webservice-attribute-in-xml.html' title='State few WebService attribute in XML Web Service ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2311375443586699387.post-1128914958258979474</id><published>2010-08-08T11:49:00.000-07:00</published><updated>2010-08-08T11:49:28.807-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Web Services"/><title type='text'>What are various webmethod attributes in Web Service ?</title><summary type="text">The WebMethod attribute in Web Service&amp;nbsp;provides the following properties: 

BufferResponse
CacheDuration
Description
EnableSession
MessageName
TransactionOption
</summary><link rel='replies' type='application/atom+xml' href='http://santoshdotnetworld.blogspot.com/feeds/1128914958258979474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2311375443586699387/1128914958258979474' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/1128914958258979474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2311375443586699387/posts/default/1128914958258979474'/><link rel='alternate' type='text/html' href='http://santoshdotnetworld.blogspot.com/2010/08/what-are-various-webmethod-attributes.html' title='What are various webmethod attributes in Web Service ?'/><author><name>Santosh Singh</name><uri>http://www.blogger.com/profile/04554331542586779719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>