Beispiel #1
0
        protected internal virtual void VisitSpan(InheritsSpan span)
        {
            // Set the appropriate base type
            GeneratedClass.BaseTypes.Clear();
            GeneratedClass.BaseTypes.Add(span.BaseClass);

            if (DesignTimeMode)
            {
                WriteHelperVariable(span.Content, InheritsHelperName);
            }
        }
Beispiel #2
0
        protected override void VisitSpan(InheritsSpan span)
        {
            var baseType = new CodeTypeReference(span.BaseClass);

            GeneratedClass.BaseTypes.Clear();
            GeneratedClass.BaseTypes.Add(baseType);

            if (DesignTimeMode)
            {
                WriteHelperVariable(span.Content, "__modelHelper");
            }
        }