Skip to content

Commit fa049fa

Browse files
authored
Merge pull request #2 from adoconnection/master
Merge
2 parents 738bc48 + 1d6cc57 commit fa049fa

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

RazorEngineCore/AnonymousTypeWrapper.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32
using System.Dynamic;
43
using System.Linq;
54
using System.Reflection;
6-
using System.Runtime.CompilerServices;
75

86
namespace RazorEngineCore
97
{

RazorEngineCore/RazorEngineCompilationOptionsBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Linq;
33
using System.Reflection;
4-
using System.Text;
54

65
namespace RazorEngineCore
76
{

RazorEngineCore/RazorEngineCompiledTemplate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace RazorEngineCore
88
public class RazorEngineCompiledTemplate
99
{
1010
private readonly MemoryStream assemblyByteCode;
11-
protected readonly Type templateType;
11+
private readonly Type templateType;
1212

1313
internal RazorEngineCompiledTemplate(MemoryStream assemblyByteCode)
1414
{

RazorEngineCore/RazorEngineTemplateBase.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@ public abstract class RazorEngineTemplateBase
1212

1313
public dynamic Model { get; set; }
1414

15-
public void WriteLiteral(string literal = null)
15+
public virtual void WriteLiteral(string literal = null)
1616
{
1717
this.stringBuilder.Append(literal);
1818
}
1919

20-
public void Write(object obj = null)
20+
public virtual void Write(object obj = null)
2121
{
2222
this.stringBuilder.Append(obj);
2323
}
2424

25-
public void BeginWriteAttribute(string name, string prefix, int prefixOffset, string suffix, int suffixOffset, int attributeValuesCount)
25+
public virtual void BeginWriteAttribute(string name, string prefix, int prefixOffset, string suffix, int suffixOffset, int attributeValuesCount)
2626
{
2727
this.attributeSuffix = suffix;
2828
this.stringBuilder.Append(prefix);
2929
this.stringBuilder.Append(this.attributePrefix);
3030
}
3131

32-
public void WriteAttributeValue(string prefix, int prefixOffset, object value, int valueOffset, int valueLength, bool isLiteral)
32+
public virtual void WriteAttributeValue(string prefix, int prefixOffset, object value, int valueOffset, int valueLength, bool isLiteral)
3333
{
3434
this.stringBuilder.Append(prefix);
3535
this.stringBuilder.Append(value);
3636
}
3737

38-
public void EndWriteAttribute()
38+
public virtual void EndWriteAttribute()
3939
{
4040
this.stringBuilder.Append(this.attributeSuffix);
4141
this.attributeSuffix = null;
@@ -46,7 +46,7 @@ public virtual Task ExecuteAsync()
4646
return Task.CompletedTask;
4747
}
4848

49-
public string Result()
49+
public virtual string Result()
5050
{
5151
return this.stringBuilder.ToString();
5252
}

0 commit comments

Comments
 (0)