Expose a generic List<T> as a property: As per Object Oriented Principles and .NET standards exposing field variables as a public is against the rule of encapsulation.Properties are defined to expose the field variables. Properties are defined to expose the field variables. It is simple to make primitive type data such as string and int variables […]
Exposing List
WCF Bindings – What are Different Bindings Supported by WCF?
Read this article for understanding various types of WCF bindings. WCF Bindings describes how clients can communicate with WCF service. A WCF binding defines the communication between end points and the world. Binding includes transportation and the encoding like text and binary. Bindings in WCF define how external world/other endpoints can communicate with the service. […]
What Is Windows Communication Foundation (WCF)? | Introduction To WCF Service
Microsoft introduced WCF in 2006 along with .NET Framework 3.0.Windows Communication Foundation (WCF) is a next generation platform from Microsoft for service oriented architecture. Table of ContentsWCF Service IntroductionFeatures of WCF SevicesABC in WCFSummary WCF Service Introduction A service is a self-contained logical representation of a repeatable activity or function. Services can be combined with […]
Iterating recursively through menustrip items in C#.NET
Iterating Through Menustrip Items: There might be many cases and requirements to loop through all menu items in a menustrip Control. So, How to iterate recursively through all menu items in a menustrip control? The following is a sample method to help you in iterating through menustrip items.You can use these methods in the same class or can be […]
How To Select Required Number Of Nodes From Top or Bottom Using XPATH – C#,VB.NET
In this post, I am explaining how you can access only the specified number of required XML elements using the XPATH expression.The Same sample is given in both C# and VB.NET. Consider the same XML sample file which I have used for my other sample codes, Table of ContentsSelect Required Number of Nodes From Top […]
Changing the Default Timeout in IIS Windows Digest Authentication
Default time out in digest authentication was one of the issues which struggled me for days. I activated digest authentication in my web application hosted in IIS.I was getting continuous complaints from my client that the login window is popping up in every 5 minutes or even in lesser time and is a complete annoyance. […]