Ejemplo n.º 1
0
 protected virtual void SaveFields(XmlTextWriter output)
 {
     output.WriteAttributeString("templatename", Name);
     output.WriteAttributeString("templateid", TemplateUri.ItemId.ToString());
     output.WriteAttributeString("templateuri", TemplateUri.ToString());
     output.WriteAttributeString("classname", ClassName);
 }
Ejemplo n.º 2
0
        private void EnsureTemplates()
        {
            if (templates != null)
            {
                return;
            }

            var mappings = TemplateMappings.GetMappingsForBaseTemplate(TemplateUri.ToString());

            templates =
                mappings == null
                    ? new List <TemplateReference>(0)
                    : mappings.Select(t => new TemplateReference {
                Version = t.Version, Template = CreateLazyTemplate(new Uri(t.TemplateUri))
            }).ToList();
        }