суббота, 2 июня 2012 г.

Visual Studio Feeds English

Visual Studio Feeds English


Convert Dynamic to Type and convert Type to Dynamic

Posted: 02 Jun 2012 09:11 AM PDT

    public static class DynamicExtensions     {         public static T FromDynamic(this IDictionary dictionary)         {             var bindings = new List();             foreach (var sourceProperty in typeof(T).GetProperties().Where(x => x.CanWrite))             {                 var key = dictionary.Keys.SingleOrDefault(x => x.Equals(sourceProperty.Name, StringComparison.OrdinalIgnoreCase));                 if (string.IsNullOrEmpty(key)) continue;                 var propertyValue = dictionary[key];                 bindings.Add(Expression.Bind(sourceProperty, Expression.Constant(propertyValue)));             }             Expression memberInit = Expression.MemberInit(Expression.New(typeof(T)), bindings);             return Expression.Lambda(memberInit).Compile().Invoke();         }         public static dynamic ToDynamic(this T obj)         {             IDictionary expando = new ExpandoObject();             foreach (var propertyInfo in typeof(T).GetProperties())             {                 var propertyExpression = Expression.Property(Expression.Constant(obj), propertyInfo);                 var currentValue = Expression.Lambda(propertyExpression).Compile().Invoke();                 expando.Add(propertyInfo.Name.ToLower(), currentValue);             }             return expando as ExpandoObject;         }     } ...(Read whole news on source site) (http://geekswithblogs.net/Nettuce/archive/2012/06/02/convert-dynamic-to-type-and-convert-type-to-dynamic.aspx)

W8WIL #2: Declaratively Specifying an ItemTemplate in a Fragment

Posted: 02 Jun 2012 07:10 AM PDT

I've been playing quite a bit over the last few days with the new Windows 8 Release Preview (http://bit.ly/GetWin8CP), as part of

WebCast MSDN: Visual Studio Architecture Tools

Posted: 02 Jun 2012 06:55 AM PDT

See your there (https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032511912&Culture=es-MX) next Monday 4th....(Read whole news on source site) (http://weblogs.asp.net/mjarguello/archive/2012/06/02/webcast-msdn-visual-studio-architecture-tools.aspx)

SyncFusion’s Metro Studio 1 with 600 Metro style Icons

Posted: 02 Jun 2012 05:55 AM PDT

Metro Studio 1 allows you to create Icons for Metro apps (Windows Phone, and Windows 8). These icons can be used across all

Pivot, PivotTable and PowerPivot

Posted: 02 Jun 2012 12:37 AM PDT

OK, I am not a data guy. Or let me say I am not an Excel (MS-EXCEL) guy. I have always believed that

Azure Fluent Management v 0.4 Released

Posted: 02 Jun 2012 12:22 AM PDT

If you haven't tried Fluent Management yet try it now! It's beginning to shape up into quite a powerful library. There are several

Download Windows 8 Release Preview

Posted: 01 Jun 2012 08:51 PM PDT

Finally, the Windows 8 Release Preview was released yesterday which is slated to be the last release before the final version and is

Windows 8 Release Preview license or Serial key

Posted: 01 Jun 2012 08:51 PM PDT

Windows 8 Release Preview was released few days back which is available for download now. The Windows 8 Release Preview is prerelease software.

Installing Eclipse on Windows 8 and connecting to TFS 2012

Posted: 01 Jun 2012 03:34 PM PDT

I will be running a bunch of demos on a couple of weeks with TFS Eclipse working together. Although I have a

Комментариев нет:

Отправить комментарий