62,074
社区成员
发帖
与我相关
我的任务
分享
标题:
现在处理时间:2014/11/18 10:07:49
<br/>
内容:
DataOfIO
namespace Microsoft.VisualStudio.TextTemplating3D1E5FBD650A2E73E9BADA6E7FDD272E
{
using System;
using System.Text;
using System.Collections.Generic;
using WebApplicationOfConsole;
#line 1 "ea_performance_settle_report.tt"
public class GeneratedTextTransformation : Microsoft.VisualStudio.TextTemplating.TextTransformation
{
public override string TransformText()
{
try
{
this.Write("\r\n");
this.Write("\r\n标题:\r\n");
#line 11 "ea_performance_settle_report.tt"
this.Write(Microsoft.VisualStudio.TextTemplating.ToStringHelper.ToStringWithCulture(paramData.Title));
#line default
#line hidden
this.Write("\r\n<br/>\r\n内容:\r\n");
#line 14 "ea_performance_settle_report.tt"
this.Write(Microsoft.VisualStudio.TextTemplating.ToStringHelper.ToStringWithCulture(paramData.Data));
#line default
#line hidden
this.Write("\r\n \r\n");
}
catch (System.Exception e)
{
e.Data["TextTemplatingProgress"] = this.GenerationEnvironment.ToString();
throw;
}
return this.GenerationEnvironment.ToString();
}
#line 1 "ea_performance_settle_report.tt"
private global::WebApplicationOfConsole.PerformanceData _paramDataField;
/// <summary>
/// Access the paramData parameter of the template.
/// </summary>
private global::WebApplicationOfConsole.PerformanceData paramData
{
get
{
return this._paramDataField;
}
}
public override void Initialize()
{
base.Initialize();
if ((this.Errors.HasErrors == false))
{
bool paramDataValueAcquired = false;
if (this.Session.ContainsKey("paramData"))
{
if ((typeof(global::WebApplicationOfConsole.PerformanceData).IsAssignableFrom(this.Session["paramData"].GetType()) == false))
{
this.Error("The type \'WebApplicationOfConsole.PerformanceData\' of the parameter \'paramData\' d" +
"id not match the type of the data passed to the template.");
}
else
{
this._paramDataField = ((global::WebApplicationOfConsole.PerformanceData)(this.Session["paramData"]));
paramDataValueAcquired = true;
}
}
if ((paramDataValueAcquired == false))
{
object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("paramData");
if ((data != null))
{
if ((typeof(global::WebApplicationOfConsole.PerformanceData).IsAssignableFrom(data.GetType()) == false))
{
this.Error("The type \'WebApplicationOfConsole.PerformanceData\' of the parameter \'paramData\' d" +
"id not match the type of the data passed to the template.");
}
else
{
this._paramDataField = ((global::WebApplicationOfConsole.PerformanceData)(data));
}
}
}
}
}
#line default
#line hidden
}
#line default
#line hidden
}