Module and Script Download Resources
http://technet.microsoft.com/en-US/scriptcenterhttp://www.poshcode.org/
http://psget.net/directory
Developer Tools
StudioShell: http://studioshell.codeplex.com/PSAKE: https://github.com/psake/psake
A .NET programmer reference.
@model object
@{
ViewBag.Title = "Object Information";
}
| @prop.Name | @if (prop.PropertyType.IsArray) { var arrayData = prop.GetValue(Model,null) as Array; if (arrayData != null) { foreach (var item in arrayData) { @Html.Partial("ObjectTable",item) } } } else if(prop.PropertyType.Namespace == null || !prop.PropertyType.Namespace.StartsWith("System")){ var data = prop.GetValue(Model,null); if(data != null){ @Html.Partial("ObjectTable",data) } } else { @Convert.ToString( prop.GetValue(Model,null)) } |
$(MSBuildProjectDirectory)\.. $(solutiondir)\_Build.Release.Output $(buildoutputdir)\Nuget $(nugetdir)\Lib\net40 $(solutiondir)\tmp $(dlldir)\MyTargetAssembly.dll $(programfiles)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client $(MSBuildProjectDirectory)\Build.Framework.Release.nuspec $(MSBuildProjectDirectory)\MJCACert.cer \\ecmspackages\Packages
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
using System;
public interface ISelectiveDisplay {
bool IsVisible { get; set; }
ICollection<string> PropertiesToHide { get; }
}
public abstract class SelectiveDisplay<T> : ISelectiveDisplay {
public SelectiveDisplay() {
this.PropertiesToHide = new List<string>();
}
[ScaffoldColumn(false)]
public bool IsVisible { get; set; }
[ScaffoldColumn(false)]
public ICollection<string> PropertiesToHide {
get;
private set;
}
private static string GetPropertyName(Expression<Func<T, object>> property) {
PropertyInfo propertyInfo = null;
if (property.Body is MemberExpression) {
propertyInfo = (property.Body as MemberExpression).Member as PropertyInfo;
} else {
propertyInfo =
(((UnaryExpression)property.Body).Operand as MemberExpression)
.Member as PropertyInfo;
}
return propertyInfo.Name;
}
public void HideProperty(Expression<Func<T, object>> prop) {
this.PropertiesToHide.Add(GetPropertyName(prop));
}
}