Skip to content

Commit bed13c3

Browse files
committed
C#: Tweaks from review comments.
1 parent 0c24315 commit bed13c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/ObjectInitMethod.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ namespace Semmle.Extraction.CSharp.Entities
55
{
66
internal sealed class ObjectInitMethod : CachedEntity, IMethodEntity
77
{
8-
Type ContainingType { get; }
8+
private Type ContainingType { get; }
99

1010
private ObjectInitMethod(Context cx, Type containingType)
1111
: base(cx)
1212
{
1313
this.ContainingType = containingType;
1414
}
1515

16-
public string Name => "<object initializer>";
16+
public static readonly string Name = "<object initializer>";
1717

1818
public static ObjectInitMethod Create(Context cx, Type containingType)
1919
{

0 commit comments

Comments
 (0)