C#: Tweaks from review comments.

This commit is contained in:
Anders Schack-Mulligen
2025-11-28 11:05:04 +01:00
parent 7e4e872430
commit ba7b517a4a

View File

@@ -5,7 +5,7 @@ namespace Semmle.Extraction.CSharp.Entities
{
internal sealed class ObjectInitMethod : CachedEntity, IMethodEntity
{
Type ContainingType { get; }
private Type ContainingType { get; }
private ObjectInitMethod(Context cx, Type containingType)
: base(cx)
@@ -13,7 +13,7 @@ namespace Semmle.Extraction.CSharp.Entities
this.ContainingType = containingType;
}
public string Name => "<object initializer>";
public static readonly string Name = "<object initializer>";
public static ObjectInitMethod Create(Context cx, Type containingType)
{