NV Andre Clouet Grande Reserve Brut, Champagne, France
未滿18歲請勿飲酒,飲酒過量有礙身體健康
未滿18歲請勿飲酒,飲酒過量有礙身體健康
using System.Diagnostics; [STAThread] public static void Main() { StackTrace stackTrace = new StackTrace(); // get call stack StackFrame[] stackFrames = stackTrace.GetFrames(); // get method calls (frames) // write call stack method names foreach (StackFrame stackFrame in stackFrames) { Console.WriteLine(stackFrame.GetMethod().Name); // write method name } } Ref: http://www.csharp-examples.net/reflection-callstack/
T4 (Text Template Transformation Toolkit) 可以幫忙訂出 template 並用程式輔助來產生程式碼或文件(比方說不同語言的定義檔)。 使用 T4 之前可以先去下載 T4 Toolbox,安裝之後在 Visual studio 增加新項目時就可以看到有 “T4 Toolbox” 的分類,有 Generator、Script、Template 三種可選 首先定義template檔案,在這邊用System.Xml去讀取 resource file,同時 include SaveOutput.tt 做輸出用。 <#@ template language="C#" debug="True" #> <#@ include file="SaveOutput.tt" #> <#@ include file="T4Toolbox.tt" #> <#@ assembly name="System.Xml" #> <#@ import namespace="System.Xml" #> <# // <copyright file="i18n_js.tt" company="Onelab"> // Copyright […]
今天工作遇到,記錄一下… http://stackoverflow.com/questions/112055/what-does-d0-mean-in-a-windows-batch-file http://www.computerhope.com/forhlp.htm http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true
2014/12/06 未成年請勿飲酒,飲酒過量有礙身體健康
例如: 平成XX年
2014/07/26 未滿十八歲請勿飲酒,飲酒過量有礙身體健康
2010/10/12, 孔雀 未滿18歲請勿飲酒,飲酒過量有礙身體健康
2010/12/15 未滿18歲請勿飲酒,飲酒過量有礙身體健康
2011/1/15, @孔雀 未滿18歲請勿飲酒,飲酒過量有礙身體健康