| File: Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ZeroInitialize.cs | Web Access |
| Project: src\runtime\src\libraries\Microsoft.CSharp\src\Microsoft.CSharp.csproj (Microsoft.CSharp) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics.CodeAnalysis; namespace Microsoft.CSharp.RuntimeBinder.Semantics { internal sealed class ExprZeroInit : ExprWithType { public ExprZeroInit(CType type) : base(ExpressionKind.ZeroInit, type) { } public override object Object { [RequiresUnreferencedCode(Binder.TrimmerWarning)] get => Activator.CreateInstance(Type.AssociatedSystemType); } } }