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.PropertyInfo).IsAssignableFrom(this.Session["it"].GetType()) == false)) { this.Error("The type \'org.pescuma.ModelSharp.Core.model.PropertyInfo\' of the parameter \'it\' d" + "id not match the type of the data passed to the template."); } else { this._itField = ((global::org.pescuma.ModelSharp.Core.model.PropertyInfo)(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.PropertyInfo).IsAssignableFrom(data.GetType()) == false)) { this.Error("The type \'org.pescuma.ModelSharp.Core.model.PropertyInfo\' of the parameter \'it\' d" + "id not match the type of the data passed to the template."); } else { this._itField = ((global::org.pescuma.ModelSharp.Core.model.PropertyInfo)(data)); } } } } }