Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _ListenerAsyncResult.cs
- DnsPermission.cs
- _NegoStream.cs
- StateDesigner.Helpers.cs
- CatchDesigner.xaml.cs
- DbMetaDataFactory.cs
- _BufferOffsetSize.cs
- WebHttpBehavior.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- ServerType.cs
- GraphicsPath.cs
- DataTableNewRowEvent.cs
- SoapHeaderAttribute.cs
- XamlSerializer.cs
- mansign.cs
- hresults.cs
- WebBrowserContainer.cs
- ObjectItemAttributeAssemblyLoader.cs
- RbTree.cs
- WeakReferenceKey.cs
- TreeNodeEventArgs.cs
- XmlDictionaryString.cs
- ToolStripManager.cs
- FixedTextBuilder.cs
- DbCommandDefinition.cs
- ExpressionBuilder.cs
- SettingsSection.cs
- TextServicesLoader.cs
- ReadContentAsBinaryHelper.cs
- BuildProviderAppliesToAttribute.cs
- glyphs.cs
- ConfigUtil.cs
- DataGridViewCellParsingEventArgs.cs
- StylusOverProperty.cs
- BasePropertyDescriptor.cs
- HandledMouseEvent.cs
- Hex.cs
- SafeNativeMethods.cs
- HealthMonitoringSectionHelper.cs
- mil_sdk_version.cs
- FrameworkElementAutomationPeer.cs
- RandomNumberGenerator.cs
- FieldNameLookup.cs
- DetailsViewPageEventArgs.cs
- TextRange.cs
- ReflectionUtil.cs
- BulletChrome.cs
- AffineTransform3D.cs
- TrustLevelCollection.cs
- oledbmetadatacolumnnames.cs
- ContentPlaceHolder.cs
- Queue.cs
- Int32Rect.cs
- BitmapEffectDrawingContextState.cs
- WindowExtensionMethods.cs
- keycontainerpermission.cs
- DPTypeDescriptorContext.cs
- DesignTimeValidationFeature.cs
- EasingKeyFrames.cs
- CodeConstructor.cs
- CategoryValueConverter.cs
- DomainUpDown.cs
- DbParameterHelper.cs
- Validator.cs
- ConnectionsZone.cs
- KeyInstance.cs
- ObjectFullSpanRewriter.cs
- ViewStateModeByIdAttribute.cs
- PrintDocument.cs
- TTSEngineProxy.cs
- DataGridViewBand.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- XmlCharCheckingReader.cs
- FixedStringLookup.cs
- GlyphInfoList.cs
- CompositeCollectionView.cs
- HtmlFormWrapper.cs
- WebEventTraceProvider.cs
- Rotation3D.cs
- ConstructorNeedsTagAttribute.cs
- IERequestCache.cs
- KnownTypeHelper.cs
- Int16AnimationUsingKeyFrames.cs
- MsmqIntegrationSecurityElement.cs
- DataSourceHelper.cs
- WebBrowser.cs
- MobileTemplatedControlDesigner.cs
- Margins.cs
- NullableFloatSumAggregationOperator.cs
- ShaderEffect.cs
- PageTheme.cs
- BooleanKeyFrameCollection.cs
- GridView.cs
- ConfigurationValidatorAttribute.cs
- ReadOnlyPropertyMetadata.cs
- Random.cs
- FileDialogCustomPlace.cs
- propertyentry.cs
- RadioButtonList.cs
- DocComment.cs