Files
PowerShell/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs
T

30 lines
694 B
C#

/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
#if !SILVERLIGHT
#if !CLR2
using System.Linq.Expressions;
#else
using Microsoft.Scripting.Ast;
#endif
namespace System.Management.Automation.ComInterop
{
/// <summary>
/// ArgBuilder which always produces null.
/// </summary>
internal sealed class NullArgBuilder : ArgBuilder
{
internal NullArgBuilder() { }
internal override Expression Marshal(Expression parameter)
{
return Expression.Constant(null);
}
}
}
#endif