Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / CodeDOM / CodeMemberField.cs / 1 / CodeMemberField.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a class field member.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeMemberField : CodeTypeMember {
private CodeTypeReference type;
private CodeExpression initExpression;
///
///
/// Initializes a new .
///
///
public CodeMemberField() {
}
///
///
/// Initializes a new with the specified member field type and
/// name.
///
///
public CodeMemberField(CodeTypeReference type, string name) {
Type = type;
Name = name;
}
///
/// [To be supplied.]
///
public CodeMemberField(string type, string name) {
Type = new CodeTypeReference(type);
Name = name;
}
///
/// [To be supplied.]
///
public CodeMemberField(Type type, string name) {
Type = new CodeTypeReference(type);
Name = name;
}
///
///
/// Gets or sets the member field type.
///
///
public CodeTypeReference Type {
get {
if (type == null) {
type = new CodeTypeReference("");
}
return type;
}
set {
type = value;
}
}
///
///
/// Gets or sets the initialization expression for the member field.
///
///
public CodeExpression InitExpression {
get {
return initExpression;
}
set {
initExpression = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a class field member.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeMemberField : CodeTypeMember {
private CodeTypeReference type;
private CodeExpression initExpression;
///
///
/// Initializes a new .
///
///
public CodeMemberField() {
}
///
///
/// Initializes a new with the specified member field type and
/// name.
///
///
public CodeMemberField(CodeTypeReference type, string name) {
Type = type;
Name = name;
}
///
/// [To be supplied.]
///
public CodeMemberField(string type, string name) {
Type = new CodeTypeReference(type);
Name = name;
}
///
/// [To be supplied.]
///
public CodeMemberField(Type type, string name) {
Type = new CodeTypeReference(type);
Name = name;
}
///
///
/// Gets or sets the member field type.
///
///
public CodeTypeReference Type {
get {
if (type == null) {
type = new CodeTypeReference("");
}
return type;
}
set {
type = value;
}
}
///
///
/// Gets or sets the initialization expression for the member field.
///
///
public CodeExpression InitExpression {
get {
return initExpression;
}
set {
initExpression = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NodeInfo.cs
- TypedElement.cs
- InvalidDataException.cs
- DataBinder.cs
- CqlWriter.cs
- MultilineStringConverter.cs
- LinkButton.cs
- ExpandableObjectConverter.cs
- DesigntimeLicenseContext.cs
- smtpconnection.cs
- IBuiltInEvidence.cs
- SiteMapPathDesigner.cs
- CharacterShapingProperties.cs
- SortedSetDebugView.cs
- AssemblyInfo.cs
- NamedObject.cs
- DescendantQuery.cs
- HttpValueCollection.cs
- CodeSnippetCompileUnit.cs
- DesignColumn.cs
- AssemblyGen.cs
- ModelFunctionTypeElement.cs
- ReaderWriterLock.cs
- SafeNativeMethods.cs
- SafeSecurityHandles.cs
- Form.cs
- Validator.cs
- RenderContext.cs
- SecurityTokenResolver.cs
- TimeoutTimer.cs
- NavigatorOutput.cs
- SQLMoneyStorage.cs
- XmlDataSource.cs
- BufferedGraphicsContext.cs
- HttpModulesSection.cs
- CompositeActivityDesigner.cs
- MenuItemCollectionEditorDialog.cs
- OracleException.cs
- SafeNativeMethods.cs
- ItemAutomationPeer.cs
- GlobalProxySelection.cs
- UniqueIdentifierService.cs
- MenuCommandService.cs
- PathParser.cs
- GeometryDrawing.cs
- WebBaseEventKeyComparer.cs
- SqlProvider.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- SolidBrush.cs
- DiscreteKeyFrames.cs
- ProxyWebPart.cs
- DbConnectionPool.cs
- Constraint.cs
- Soap.cs
- GeometryModel3D.cs
- WebPartDescriptionCollection.cs
- EntityCommandCompilationException.cs
- MemberDescriptor.cs
- NativeMethods.cs
- AccessViolationException.cs
- TypefaceMetricsCache.cs
- TdsParserSessionPool.cs
- CodeConditionStatement.cs
- WebBrowserBase.cs
- ByteStack.cs
- ButtonPopupAdapter.cs
- UInt32Converter.cs
- DebugView.cs
- ExpandoObject.cs
- TaiwanCalendar.cs
- TagPrefixCollection.cs
- SerializationAttributes.cs
- IdentifierElement.cs
- DataMemberAttribute.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataGridViewBand.cs
- ProfilePropertySettings.cs
- PersistenceParticipant.cs
- ScaleTransform.cs
- SignedXml.cs
- Win32PrintDialog.cs
- CodeMethodInvokeExpression.cs
- PersonalizationState.cs
- HtmlImage.cs
- StrongNameMembershipCondition.cs
- EventManager.cs
- VirtualPathUtility.cs
- SerialPinChanges.cs
- PerformanceCounterNameAttribute.cs
- FileChangesMonitor.cs
- ButtonAutomationPeer.cs
- SimpleWebHandlerParser.cs
- PtsHost.cs
- CodeAccessPermission.cs
- DoubleUtil.cs
- EventDescriptor.cs
- HtmlEmptyTagControlBuilder.cs
- LogicalExpr.cs
- JoinGraph.cs
- Attribute.cs