cmd Process
public bool CmdRun(Command cmd) { var proc = new System.Diagnostics.Process { EnableRaisingEvents = false,
public class MyRemoteClass : MarshalByRefObject, IMyInterface | |
{ | |
public int FunctionOne(string str) | |
{ | |
return str.Length; | |
} | |
} |
public class MyRemoteClass : MarshalByRefObject, IMyInterface | |
{ | |
public int FunctionOne(string str) | |
{ | |
return str.Length; | |
} | |
} |
public interface IMyInterface | |
{ | |
int FunctionOne(string str); | |
} |
##http://nblumhardt.com/wp-content/uploads/2009/12/LazyInAutofac2.zip | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Autofac; | |
namespace LazyInAutofac2 | |
{ |
http://stackoverflow.com/questions/3038337/powershell-resolve-path-that-might-not-exist | |
[Environment]::CurrentDirectory = $pwd | |
[IO.Path]::GetFullPath(".\xyz") |
strongly-typed View very stupid | |
///Key API | |
dynamic object =ExpandoObject(); | |
object.sex = ... | |
object.name = ... | |
razor view | |
/// |
Start just do ==>
[XML]$book=Get-Content
whatever you just do you like
$book.catalog.book | select author |sort price |group author -NoElement
Count Name ----- ---- 1 Kress, Peter 1 Knorr, Stefan
Rick Roen wrote:
Hi
<style type="text/css"> @import "salesdoc.css"; </style>
This (the "@import") is plain text for XSLT. You can use unparsed-text() to read a file as a string:
~> cat import-css.xsl
[From] (http://stackoverflow.com/questions/1038101/how-to-inline-css-and-javascript-through-xsl) | |
You CSS file | |
<!--/*--><root><![CDATA[<!--*/--> | |
body | |
{ | |
margin: 0; | |
} | |
div > p | |
{ | |
background-color: yellow; |