mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
30 lines
694 B
C#
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
|
|
|