You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We are not using parameters.SetParameterProperties(this)
48
+
// because IsDefaultContent is internal property and not a parameter
49
+
SetParameterValues(parameters);
50
+
51
+
object?identifier;
52
+
53
+
if(SectionNameis not null&&SectionIdis not null)
54
+
{
55
+
thrownewInvalidOperationException($"{nameof(SectionContent)} requires that '{nameof(SectionName)}' and '{nameof(SectionId)}' cannot both have non-null values.");
56
+
}
57
+
elseif(SectionNameis not null)
58
+
{
59
+
identifier=SectionName;
60
+
}
61
+
elseif(SectionIdis not null)
62
+
{
63
+
identifier=SectionId;
64
+
}
65
+
else
66
+
{
67
+
thrownewInvalidOperationException($"{nameof(SectionContent)} requires a non-null value either for '{nameof(SectionName)}' or '{nameof(SectionId)}'.");
thrownewInvalidOperationException($"{nameof(SectionOutlet)} requires that '{nameof(SectionName)}' and '{nameof(SectionId)}' cannot both have non-null values.");
45
+
}
46
+
elseif(SectionNameis not null)
47
+
{
48
+
identifier=SectionName;
49
+
}
50
+
elseif(SectionIdis not null)
51
+
{
52
+
identifier=SectionId;
53
+
}
54
+
else
35
55
{
36
-
thrownewInvalidOperationException($"{nameof(SectionOutlet)} requires a non-null value for the parameter '{nameof(SectionId)}'.");
56
+
thrownewInvalidOperationException($"{nameof(SectionOutlet)} requires a non-null value either for '{nameof(SectionName)}' or '{nameof(SectionId)}'.");
0 commit comments