//Cloud notes from my desk -Maheshk

"Fortunate are those who take the first steps.” ― Paulo Coelho

Decompiler tools for .NET Framework

Just found something useful when you try for source code. Decompile now easily.  Read from Ahmet blog http://blogs.msdn.com/b/amb/archive/2011/05/24/decompiling-tools-for-net-framework.aspx

2011-05-26 Posted by | My .NET Expedition - Revealed | Leave a comment

The F# Survival Guide

  Welcome to the F# Survival Guide by John Puopolo with Sandy SquiresWe wrote this book to introduce mainstream developers to the world of functional programming through the lens of F#, Microsoft’s first fully-supported multi-paradigm language. – http://ctocorner.com/fsharp/book/

2010-02-22 Posted by | My .NET Expedition - Revealed | 1 Comment

Composite Application Guidance for WPF and Silverlight – Feb 2009

  Composite Application Guidance for WPF & Silverlight is designed to build enterprise-level WPF and Silverlight client applications. It will help you design and build enterprise-level composite WPF client applications—composite applications use loosely coupled, independently evolvable pieces that work together in the overall application.
The guidance includes a reference implementation, reusable library code (named the Composite Application Library), documentation, QuickStart tutorials, and hands-on labs. This version of the Composite Application Guidance is designed to help you build WPF and Silverlight applications that have a single code base. You can download PRISM v2.0 here.

2009-03-02 Posted by | My .NET Expedition - Revealed | 1 Comment

Data Access Layer – Explained

Some of my recent .NET expedition.All About Data Access Layer.
Tutorial 1: Creating a Data Access Layer:
http://msdn2.microsoft.com/en-us/library/aa581776.aspx
Tutorial 2: Creating a Business Logic Layer
http://msdn2.microsoft.com/en-us/library/aa581779.aspx
15 Seconds : Creating a Data Access Layer in .NET – Part 1
http://www.internet.com/icom_cgi/print/print.cgi?url=http://www.15seconds.com/issue/030317.htm
15 Seconds : Creating a Data Access Layer in .NET – Part 2
http://www.internet.com/icom_cgi/print/print.cgi?url=http://www.15seconds.com/issue/030401.htm

rgds,
Mahes

2007-02-21 Posted by | My .NET Expedition - Revealed | 1 Comment

String to Int and Int to Stri- without using builtin library

Hi all,

            Interestingly this is going to be big post on normal datatype conversion but without using any BUILTIN FUNCTION OR LIBRARIES in .NET.

 

Yes, When we need to convert int-> string or vice versa…we used to use toString(), Parse, ConvertTo. .etc..functions to do this task. But I had this doubt when I was going through MS Interview questions. Yes, In Microsoft, they’ve asked this type of questions .. to test the basic knowledge of core programming….but I ‘ve taken 4 days(part time) to comeout with solutions for this after discussing with my colleagues( Jayveer & Vaibhav).

I’m sure about it technicallity or the way I’ve coded..but not sure about the possibility of doing the same in any other way. If you know something about hardcore conversion or links pls leave it in comment..

 

//Issue Topic: DataType conversion in C# ( How compiler/inbuilt function doing the same…? )

// To convert to data type without using any inbuily function provided by the Framework

//Logic : Compiler Level

//Language used : C#

// CODE Written By : Mahesh

// Courtesy : XOR Algorithm / Idea by  :mladenp

// For String reversing…http://weblogs.sqlteam.com/mladenp/archive/2006/03/19/9350.aspx?Pending=true

 

/////////////////////////// STRING -> INT/////////////////////////////////////////

using System;

namespace Mystring

{

    class Program

    {

        static void Main(string[] args)

        {

            # region STRING -> INT

            string strInput = "300";

            int intOutput = 0;

            for (int i = 0; i < strInput.Length; i++)

            {

                intOutput = intOutput * 10;

                intOutput = intOutput + strInput[i] – 48;

            }

            Console.WriteLine("Input is string ->300 and ouput is Integer->" + intOutput.ToString()); 

            Console.WriteLine("");

            # endregion

/////////////////////////// INT -> STRING/////////////////////////////////////////

            # region INT -> STRING

            int intIndex = 1;

            int intInput = 23456;

            string strResult = "";

            while (intIndex > 0)

            {

                if (intInput == 0)

                    break;

                intIndex = intInput % 10;

                intInput = intInput / 10;

                strResult += intIndex;

            }

 

      //Actual string reverse is happening here

            char[] chr = strResult.ToCharArray();

            int intLen = strResult.Length – 1;

            for (int i = 0; i < intLen; i++, intLen–)

            {

                //using XOR – Refer the XOR Table below

                chr[i] ^= chr[intLen];

                chr[intLen] ^= chr[i];

                chr[i] ^= chr[intLen];

            }

            string strRes = new string(chr);

            Console.WriteLine("Input is Int ->23456 and ouput is String->" + strRes);

            Console.WriteLine("");

        # endregion

        }

    }

}

 

//XOR table

//1 1    0

//0 0    1

//1 0    1

//0 1    1

 

Hope I’ve managed to get the conversion successfully...pls let me know I missed out something or anyother logic to the same..and also feel free to drop ur comment about my expedition on this…

 

Mahesh

mfcmahesh at hotmail.com

2006-05-23 Posted by | My .NET Expedition - Revealed | Leave a comment