/// <summary>
        /// Visits a model span.
        /// </summary>
        /// <param name="span">The model span.</param>
        private void VisitModelSpan(ModelSpan span)
        {
            SetModelType(span.ModelTypeName);

            if (DesignTimeMode)
                WriteHelperVariable(span.Content, "__modelHelper");
        }
示例#2
0
        private void VisitModelSpan(ModelSpan span)
        {
            SetBaseType(span.ModelTypeName);

            if (DesignTimeMode)
            {
                WriteHelperVariable(span.Content, "__modelHelper");
            }
        }
示例#3
0
 private bool Equals(ModelSpan span)
 {
     return(base.Equals(span) && String.Equals(ModelTypeName, span.ModelTypeName, StringComparison.Ordinal));
 }
示例#4
0
        public override bool Equals(object obj)
        {
            ModelSpan span = obj as ModelSpan;

            return(span != null && Equals(span));
        }
示例#5
0
 private bool Equals(ModelSpan span)
 {
     return base.Equals(span) && String.Equals(ModelTypeName, span.ModelTypeName, StringComparison.Ordinal);
 }