Tuesday, October 8, 2013

Reflection C# .NET

Reflection:

If we are working on many project in one solution of visual studio and need to find the type of anything, e.g. Enum. We can use the following code to find from current executing assembly from current assembly references.
private static Type GetEnumTypeFromAssembly(String enumTypeName)
{
     var currentAssembly = Assembly.GetExecutingAssembly();
     Type type = null;
     foreach (var assemblyname in 
                           currentAssembly.GetReferencedAssemblies())
     {
           type = Assembly.Load(assemblyname).GetType((enumTypeName));
           if (type != null)
           {
                break;
           }
     }
     return type;
}

Tuesday, April 30, 2013

MCSD - SharePoint Server 2013

Microsoft releases information about the second MCSD SharePoint exams: 

70-488 Developing Microsoft SharePoint Server 2013 Core Solutions and 

70-489 Developing Microsoft SharePoint Server 2013 Advanced Solutions


The full requirements for achieving MCSD in SharePoint 2013 will include two non-SharePoint specific exams; one of these is 70-480 – Programming in HTML5 with JavaScript and CSS3, the other is 70-486 – Developing ASP.NET MVC 4 Web Applications.

To summarise you will need to pass the following four exams to achieve the MCSD: SharePoint Applications in SharePoint 2013:


SharePoint focused


Web development focused

If someone has already completed MCSD - Web Applications, they have advantage to give only two paper for SharePoint focused above, they can get MCSD in SharePoint 2013.








Friday, June 29, 2012

C# Closures Explained

closure in C# takes the form of an in-line delegate/anonymous method. A closure is attached to its parent method meaning that variables defined parents method body can be referenced within the anonymous method. 


A good article on C# Closures....


C# Closures Explained

Wednesday, June 20, 2012

Validation In Razor Web Pages 2

The new release of ASP.NET Web Pages - version 2 - doesn't include many obvious changes, but the most significant one is an enhanced Validation system. A couple of new classes have been introduced, and Web Pages validation now works with the MVC Unobtrusive jQuery validation library. This article explores the new validation system and sees what it brings to the party.

Please take a look to this article...

Validation In Razor Web Pages 2