You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,97 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodeMemberField.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace System.CodeDom {
|
||||
|
||||
using System.Diagnostics;
|
||||
using System;
|
||||
using Microsoft.Win32;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Represents a class field member.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
[
|
||||
ClassInterface(ClassInterfaceType.AutoDispatch),
|
||||
ComVisible(true),
|
||||
Serializable,
|
||||
]
|
||||
public class CodeMemberField : CodeTypeMember {
|
||||
private CodeTypeReference type;
|
||||
private CodeExpression initExpression;
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Initializes a new <see cref='System.CodeDom.CodeMemberField'/>.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodeMemberField() {
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Initializes a new <see cref='System.CodeDom.CodeMemberField'/> with the specified member field type and
|
||||
/// name.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodeMemberField(CodeTypeReference type, string name) {
|
||||
Type = type;
|
||||
Name = name;
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public CodeMemberField(string type, string name) {
|
||||
Type = new CodeTypeReference(type);
|
||||
Name = name;
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public CodeMemberField(Type type, string name) {
|
||||
Type = new CodeTypeReference(type);
|
||||
Name = name;
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Gets or sets the member field type.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodeTypeReference Type {
|
||||
get {
|
||||
if (type == null) {
|
||||
type = new CodeTypeReference("");
|
||||
}
|
||||
return type;
|
||||
}
|
||||
set {
|
||||
type = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Gets or sets the initialization expression for the member field.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodeExpression InitExpression {
|
||||
get {
|
||||
return initExpression;
|
||||
}
|
||||
set {
|
||||
initExpression = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user