The blog has moved to a new address. The blog is now located at http://devintelligence.com

Thursday, May 31, 2007

A new beta of JetBrains refactoring tool is available for download

Now providing unparalleled support for C#, Visual Basic .NET, XML, XAML, and ASP.NET, including comprehensive cross-language functionality.

New Features

  • Unit Test Explorer
  • Go To Symbol
  • To-do List
  • XML and XAML Support
    • Various quick-fixes and context actions in XML
    • Code completion in XML
  • Code Analysis for C# Code

 

ReSharper 3.0 Beta is only a pre-release build of ReSharper 3.0. The final version 3.0 release is scheduled for the end of June, 2007. If you purchase ReSharper for VS .NET 2003 or ReSharper for VS 2005 now, you will qualify for free upgrade to version 3.0 when it becomes available.

Download Full Edition

Download C# Edition

Download Visual Basic Edition 

Wednesday, May 30, 2007

System.Reflection - FieldInfo class

A FieldInfo class provides detailed information about a single field of a class or an interface. The reflected field may be a static field or an instance field. The FieldInfoSpy example shows how to obtain the field information of a class including the access modifiers, type etc:

 

using System;
using System.Reflection;

namespace ConsoleApplication1
{
internal class FieldInfoSpy
{
private static void Main(string[] args)
{
Type type
= typeof (Car);

//query type
FieldInfo[] fieldInfos = type.GetFields(
//Specifies that instance members are to be included in the search.
BindingFlags.Instance |
//Specifies that non-public members are to be included in the search.
BindingFlags.NonPublic |
//Specifies that public members are to be included in the search.
BindingFlags.Public |
//Specifies that static members are to be included in the search.
BindingFlags.Static);


foreach (FieldInfo fieldInfo in fieldInfos)
{
Console.WriteLine(
"Name:{0},Type:{1},Public:{2},Static:{3},Readonly:{4}",
fieldInfo.Name,
fieldInfo.FieldType.FullName,
fieldInfo.IsPublic,
fieldInfo.IsStatic,
fieldInfo.IsInitOnly
);
}

Console.ReadLine();
}
}

internal class Car
{
public bool broken;
private static string vendor;
public readonly string owner;
private int age;
protected string name;
}
}

A sample of the output follows:

Name:broken,Type:System.Boolean,Public:True,Static:False,Readonly:False
Name:owner,Type:System.String,Public:True,Static:False,Readonly:True
Name:age,Type:System.Int32,Public:False,Static:False,Readonly:False
Name:name,Type:System.String,Public:False,Static:False,Readonly:False
Name:vendor,Type:System.String,Public:False,Static:True,Readonly:False

Thursday, May 24, 2007

New open source .NET blogging platform - BlogEngine.NET 1.0 Released

Open source .NET blogging platform with nice set of features is available for download here

  • Variety of widgets
  • Commenting system
  • Syndication support (RSS, Atom, and Feedburner)
  • Support for Metaweblog API
  • Support for Trackbacks / Pingbacks
  • Blog search
  • Referrer stats
  • Theme creation

 

BlogEngine.NET Documentation Wiki

 

[Via Al Nyveldt blog]

Monday, May 14, 2007

A Spy++ like utility for WPF applications

The nice tool called Snoop that I found useful while developing and debugging WPF Applications.

Features

  • Browse the visual tree of running WPF applications.
  • Inspect properties of elements at runtime.
  • Edit properties of elements at runtime.
  • Inspect RoutedEvents that are occurring, including the elements that handle them.
  • Magnify sections of the User Interface.
  • Locate and debug binding bugs.

 

Documentation
Download

 

 

Technorati tags: , ,