public override void Initialize() { base.Initialize(); if ((this.Errors.HasErrors == false)) { bool itValueAcquired = false; if (this.Session.ContainsKey("it")) { if ((typeof(global::org.pescuma.ModelSharp.Core.model.ValidationInfo).IsAssignableFrom(this.Session["it"].GetType()) == false)) { this.Error("The type \'org.pescuma.ModelSharp.Core.model.ValidationInfo\' of the parameter \'it\'" + " did not match the type of the data passed to the template."); } else { this._itField = ((global::org.pescuma.ModelSharp.Core.model.ValidationInfo)(this.Session["it"])); itValueAcquired = true; } } if ((itValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("it"); if ((data != null)) { if ((typeof(global::org.pescuma.ModelSharp.Core.model.ValidationInfo).IsAssignableFrom(data.GetType()) == false)) { this.Error("The type \'org.pescuma.ModelSharp.Core.model.ValidationInfo\' of the parameter \'it\'" + " did not match the type of the data passed to the template."); } else { this._itField = ((global::org.pescuma.ModelSharp.Core.model.ValidationInfo)(data)); } } } } }
public override void Initialize() { base.Initialize(); if ((this.Errors.HasErrors == false)) { bool itValueAcquired = false; if (this.Session.ContainsKey("it")) { if ((typeof(global::org.pescuma.ModelSharp.Core.model.ValidationInfo).IsAssignableFrom(this.Session["it"].GetType()) == false)) { this.Error("The type \'org.pescuma.ModelSharp.Core.model.ValidationInfo\' of the parameter \'it\'" + " did not match the type of the data passed to the template."); } else { this._itField = ((global::org.pescuma.ModelSharp.Core.model.ValidationInfo)(this.Session["it"])); itValueAcquired = true; } } if ((itValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("it"); if ((data != null)) { if ((typeof(global::org.pescuma.ModelSharp.Core.model.ValidationInfo).IsAssignableFrom(data.GetType()) == false)) { this.Error("The type \'org.pescuma.ModelSharp.Core.model.ValidationInfo\' of the parameter \'it\'" + " did not match the type of the data passed to the template."); } else { this._itField = ((global::org.pescuma.ModelSharp.Core.model.ValidationInfo)(data)); } } } } }