Posts

Showing posts from May, 2007

Runtime Polymorphism

One of the frequently seen situations from a technical standpoint in a large scale of Business Layer objects is, invoking methods from different objects when they contain same method name. Today, am going to make it simple to give an example for Runtime Polymorphism. Leave your comments if am mistaken At this stage, I don’t think to mention about "Polymorphism", as hope that you are aware of how polymorphic behavior can be fused using C#. If you want a start up, in simple words, implementation of one Method with many definitions, as mentioned below. class Employee { /// <summary> /// Invoked for the Regular salaried employes /// </summary> /// <param name="intEmpId"> Employee ID </param> /// <param name="intAbscentDays"> Number of days </param> /// <returns></returns> public long CalculateSal( int intEmpId, int intAbscentDays) { return (GetEmpSal(intEmpId) * (GetWorkingDays( DateTime .Now.Month)

Asynchronous Method Calling

During my last interview, got a question about the mentioned subject. Have decided to learn and post some code. Definition of the Asynchronous Calling: Executing the method Asynchronously, inother words, executing like the concept of Thread. The bottom line is inheriting the method by System. IAsyncResult and using BeginInvoke and EndInvoke to track the status of the method. Between these methods, one can check the status by IsCompleted status. This is acomplished by Deligate keyword. Will edit this post during the time with all the example code.

Must read for VSTS

While reading some news about VSTS, got to know that, Vertigo did some samples that Microsoft is using. Surprisingly true .. anyhow, thought to blog so that it can be useful for me in future learning towards VSTS. They also have a blogs section with lots of content on VSTS, did you visited that? ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.

Switch to next Error

Use F8 to switch to next error in your code. It could be either HTML Error or CodeBehind. ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.

Hexadecimal Values Display at VS

While working with Debugging our current application, surprised to note that all the variables are showing their value in Hexadecimal format at Immediate Window. After doing some R&D got to know that some of team member set at to display in Hexadecimal value. To revoke that format, all you have to do is, goto Watch Window and right click on any row and you will observe that "Hexadecimal Display" is enabled. Select or Deselect depending on your requirement. Dont go to Tools => Options => Debugging => ... The tools option may not be available with some VS flavors like Professional or Architect. But for every edition, the Watch Window works. What do you say? ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.

Convert Text to Sentence - C#

To convert any given sentence into Title Case, use the following code. public static string PropCase(string strText) { return new CultureInfo("en").TextInfo.ToTitleCase(strText.ToLower()); } Ofcourse, you have to use the Globalization class to get the CultureInfo method be available for conversion. ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.

One more Blog towards VS

While searching for some tips on Visual Studio environment, came across the blog from Helixoft . Seems interesting, blogging here so that will find some time to read through all his posts when time permits. Meanwhile if you got some time, go through this blog . Forgot to mention that, the tag line is damn cool, "Documentation has never been so easy .." ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.

First post from Windows Live Writer

After trying out many client tools to post from my desktop, am now decided to use Microsoft's Live Writer. Seems simple, let me try out this. How do you see this post on the web now? Isn't it cool ???

.NET 3.5 is Ready

The Microsoft .NET Framework 3.5 Beta 1 is a preview release of the latest version of the .NET Framework. Many ISV’s, enterprises and Microsoft product teams are successfully building on the new features Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF) and Windows CardSpace in the .NET Framework 3.0. Microsoft plans to continue to invest in the .NET Framework developer platform and in support of existing users the .NET Framework 3.5 has a minimal number of breaking changes. So that existing applications built for .NET Framework 2.0 or .NET Framework 3.0 should continue to run without requiring changes. The .NET Framework 3.5 adds new features in several major technology areas; including: Deep integration of Language Integrated Query (LINQ) and data awareness ASP.NET AJAX for quickly creating more efficient, more interactive and highly-personalized Web experiences that work across all the most popular browsers New web protoc