We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6068e76 commit e11219fCopy full SHA for e11219f
snippets/csharp/System.Reflection.Emit/AssemblyBuilder/Overview/24895.cs
@@ -210,7 +210,7 @@ public int MyMethod(int multiplier)
210
// property value.
211
object? o2 = null;
212
if (t is not null)
213
- Activator.CreateInstance(t, new object[] { 5280 });
+ o2 = Activator.CreateInstance(t, new object[] { 5280 });
214
Console.WriteLine("o2.Number: {0}", pi?.GetValue(o2, null));
215
}
216
0 commit comments