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
- MethodCallTranslator.cs
- UpdateExpressionVisitor.cs
- ContextMenuStrip.cs
- InstanceNameConverter.cs
- FieldToken.cs
- mediaclock.cs
- ValueType.cs
- ProbeMatchesCD1.cs
- DocumentReferenceCollection.cs
- DeclaredTypeValidatorAttribute.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- User.cs
- NavigationProperty.cs
- DataControlFieldHeaderCell.cs
- AnimatedTypeHelpers.cs
- RegexNode.cs
- TrackingMemoryStreamFactory.cs
- PreservationFileReader.cs
- WinFormsSpinner.cs
- LayeredChannelFactory.cs
- QueryCacheManager.cs
- VoiceInfo.cs
- CatalogPartChrome.cs
- SqlProvider.cs
- ConnectionsZone.cs
- ListDesigner.cs
- Object.cs
- SqlPersonalizationProvider.cs
- Style.cs
- ChildTable.cs
- UnescapedXmlDiagnosticData.cs
- DesignTableCollection.cs
- CodePageEncoding.cs
- ObjectIDGenerator.cs
- CaseCqlBlock.cs
- BaseHashHelper.cs
- ExcludePathInfo.cs
- TypeConverterHelper.cs
- InstanceOwnerQueryResult.cs
- OutputCacheProfile.cs
- EllipticalNodeOperations.cs
- WebPartConnectionsCancelEventArgs.cs
- SafeCryptoHandles.cs
- BindingContext.cs
- MimeTypeMapper.cs
- FixedTextSelectionProcessor.cs
- AccessText.cs
- HttpCacheVary.cs
- EntryWrittenEventArgs.cs
- GlyphInfoList.cs
- TagPrefixInfo.cs
- Exceptions.cs
- ColorPalette.cs
- UnSafeCharBuffer.cs
- MarkupCompilePass2.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- ButtonChrome.cs
- TextBox.cs
- DataSysAttribute.cs
- HttpModulesSection.cs
- TextParagraph.cs
- ProcessDesigner.cs
- CommandField.cs
- DiagnosticTrace.cs
- GenericNameHandler.cs
- XmlRawWriter.cs
- TrimSurroundingWhitespaceAttribute.cs
- SystemIPGlobalProperties.cs
- DeriveBytes.cs
- OneOfScalarConst.cs
- TabRenderer.cs
- CqlParserHelpers.cs
- XsltContext.cs
- SizeFConverter.cs
- PasswordTextContainer.cs
- MetricEntry.cs
- ServicesExceptionNotHandledEventArgs.cs
- XmlSchemaParticle.cs
- SqlConnectionFactory.cs
- BoundsDrawingContextWalker.cs
- MenuScrollingVisibilityConverter.cs
- SimpleRecyclingCache.cs
- SchemaObjectWriter.cs
- SynchronizedRandom.cs
- StrokeIntersection.cs
- RandomDelaySendsAsyncResult.cs
- KeyInterop.cs
- FeatureSupport.cs
- CommandTreeTypeHelper.cs
- odbcmetadatacolumnnames.cs
- NetworkInterface.cs
- MenuTracker.cs
- ToolStripDropDown.cs
- __Filters.cs
- XsltContext.cs
- SocketAddress.cs
- SplitterDesigner.cs
- Int32CollectionConverter.cs
- FrameAutomationPeer.cs
- DataGridViewRowsRemovedEventArgs.cs