The Pursuit
Thursday, December 12, 2013
3Minders
Tuesday, January 3, 2012
Wednesday, August 13, 2008
Reflection , qualify nested class
This thing got my attention today when I came across a runtime error in the
code trying to access a nested class via reflection.
The code was something like this:
// The code below gives error "cannot find MyClass.NestedClass in assembly .... bla bla...bla"
Type nestedType = assembly.GetType("MyClass.NetstedClass");
Looking at it for a few minutes I could not think of anything obvious that's wrong until I figured out the use of '+' when qualifying nested class.
Type nestedType = assembly.GetType("MyClass+NetstedClass"); // work just fine :)
Monday, August 11, 2008
Error installing SQL server management studio ( missing prerequisites msxml6 )
Installed visual studio 2008 that comes bundled with SQL server 2005 express database.
But does not include a enterprise manager to browse and manage the database. You can get a free download sql server management studio separately (Download details- Microsoft SQL Server Management Studio Express)
While installing this I got an error after which the installation aborts :
error: Setup is missing prerequisites:
- MSXML6
To fix the problem ,
- Go to control panel>add/remove programs
- and select msxml
- click on change
- It will give an option to repair the installation , select that.
- This should fix the registry with the correct keys and you can now proceed installing SQL server management studio.
LINQ
Linq is a set of extensions to Microsoft dotnet framework that encompasses language integrated query and provides the ability to query native data via simple SQL like syntax.
It allows any data source to be queried that exists as object.
Its possible to query for similar information without the use of linq. However here linq provides syntactic sugar for writing these queries which result in less lines of code.
Saturday, February 23, 2008
Immutable Type
When a type offers no members that can change its state , its called an immutable type.
int and Int32
Int32 and int are the same.
int is the 'C# type' that actually maps to the primitive type 'Int32' which is the actual FCL Type.
Any data types the compiler directly supports are called primitive types. Primitive types map directly to types existing in the Framework Class Library (FCL).
CLS ( Common Language Specification ) is a sub-set of the primitive types that are supported by all dot.net languages.
C# Primitives not CLS complaint:
- System.SByte - Signed 8 bit value
- System.UInt16
- System.UInt32
- System.UInt64