private void RenderRawAttributeValue( Chunk attributeValueChunk, TagHelperAttributeDescriptor attributeDescriptor, bool isPlainTextValue) { RenderAttributeValue( attributeDescriptor, valueRenderer: (writer) => { var visitor = new CSharpTagHelperAttributeValueVisitor(writer, _context, attributeDescriptor.TypeName); visitor.Accept(attributeValueChunk); }, complexValue: !isPlainTextValue); }
private void RenderCodeAttributeValue( Chunk attributeValueChunk, TagHelperAttributeDescriptor attributeDescriptor, bool isPlainTextValue) { RenderAttributeValue( attributeDescriptor, valueRenderer: (writer) => { if (attributeDescriptor.IsEnum && isPlainTextValue) { writer .Write("global::") .Write(attributeDescriptor.TypeName) .Write("."); } var visitor = new CSharpTagHelperAttributeValueVisitor(writer, _context, attributeDescriptor.TypeName); visitor.Accept(attributeValueChunk); }, complexValue: !isPlainTextValue); }