public bool IsNullableConstructor()
{
return getClass().isPredefAgg(PredefinedType.PT_G_OPTIONAL) &&
Params.Size == 1 &&
Params.Item(0).IsGenericParameter &&
IsConstructor();
}
private static bool IsNullableConstructor(Expr expr, out ExprCall call) { Debug.Assert(expr != null); if (expr is ExprCall pCall && pCall.MemberGroup.OptionalObject == null) { MethodSymbol meth = pCall.MethWithInst.Meth(); if (meth != null && meth.IsNullableConstructor()) { call = pCall; return(true); } } call = null; return(false); }