| File: FrameworkFork\Microsoft.CodeDom\System\CodeTypeOfExpression.cs | Web Access |
| Project: src\src\dotnet-svcutil\lib\src\dotnet-svcutil-lib.csproj (dotnet-svcutil-lib) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; /// <devdoc> /// <para> /// Represents a TypeOf expression. /// </para> /// </devdoc> [ // ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), // Serializable, ] public class CodeTypeOfExpression : CodeExpression { private CodeTypeReference _type; /// <devdoc> /// <para> /// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeTypeOfExpression'/>. /// </para> /// </devdoc> public CodeTypeOfExpression() { } /// <devdoc> /// <para> /// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeTypeOfExpression'/>. /// </para> /// </devdoc> public CodeTypeOfExpression(CodeTypeReference type) { Type = type; } /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public CodeTypeOfExpression(string type) { Type = new CodeTypeReference(type); } /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public CodeTypeOfExpression(Type type) { Type = new CodeTypeReference(type); } /// <devdoc> /// <para> /// Gets or sets the data type. /// </para> /// </devdoc> public CodeTypeReference Type { get { if (_type == null) { _type = new CodeTypeReference(""); } return _type; } set { _type = value; } } } }