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
The F# Survival Guide
Composite Application Guidance for WPF and Silverlight – Feb 2009
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.
Data Access Layer – Explained
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
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
-
Recent
- The ID token is not yet valid. Make sure your computer’s time and time zone are both correct. Current epoch = 1689517128
- .NET Core – How to create a .NET GUI app which runs across the platform
- AKS 2022 updates
- Linux firewall and connectivity issues
- Microsoft Ignite (Sep22-24) event recap & On-demand sessions
- [Linux] Steps to install and configure sysstat package for monitoring.
- Azure Security Enablement – Centralized place for all the links
- Presenting tech session with stories [linkedin learning notes]
- gRPC using .NET core notes
- .NET in 2020 (Build recap)
- #KubeCon CNCF – North America 2019 watchlist
- AKS CLI Sheetcheat for the labs
-
Links