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
- ConversionContext.cs
- TypeConverterValueSerializer.cs
- MessageLoggingElement.cs
- MailAddressCollection.cs
- DESCryptoServiceProvider.cs
- OLEDB_Enum.cs
- TypeInitializationException.cs
- HexParser.cs
- NameObjectCollectionBase.cs
- PageSetupDialog.cs
- WebConfigurationHostFileChange.cs
- HttpCacheVary.cs
- SemanticResolver.cs
- _AcceptOverlappedAsyncResult.cs
- SaveFileDialogDesigner.cs
- Tablet.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SoapIgnoreAttribute.cs
- InputProcessorProfiles.cs
- ToolboxItemLoader.cs
- FontResourceCache.cs
- OutputCacheModule.cs
- XhtmlConformanceSection.cs
- NativeStructs.cs
- SharedStatics.cs
- CuspData.cs
- CultureMapper.cs
- DesignerAttribute.cs
- EdmToObjectNamespaceMap.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ValidationResult.cs
- EmptyStringExpandableObjectConverter.cs
- XmlAttribute.cs
- KeyFrames.cs
- FocusTracker.cs
- RuntimeTransactionHandle.cs
- TextRunCacheImp.cs
- BitVec.cs
- RawStylusInputCustomDataList.cs
- UserControlCodeDomTreeGenerator.cs
- OciEnlistContext.cs
- WpfKnownMember.cs
- InvalidateEvent.cs
- RequestCachingSection.cs
- DataGridViewTextBoxEditingControl.cs
- CookielessHelper.cs
- SqlSelectStatement.cs
- WSFederationHttpBindingCollectionElement.cs
- BoundPropertyEntry.cs
- X509AsymmetricSecurityKey.cs
- XmlDataDocument.cs
- SmtpFailedRecipientException.cs
- NativeBuffer.cs
- TableStyle.cs
- EntityDataSourceDesigner.cs
- UnsafeNativeMethods.cs
- TransportReplyChannelAcceptor.cs
- XmlQualifiedName.cs
- LocalizationParserHooks.cs
- Parallel.cs
- BufferedGraphics.cs
- FilteredDataSetHelper.cs
- EntityCollection.cs
- MutexSecurity.cs
- GridViewSortEventArgs.cs
- Win32Interop.cs
- WebExceptionStatus.cs
- HandledEventArgs.cs
- StorageEndPropertyMapping.cs
- XmlByteStreamWriter.cs
- XmlSortKeyAccumulator.cs
- TrackingProfileDeserializationException.cs
- ImageBrush.cs
- CmsUtils.cs
- EntityTransaction.cs
- CustomTypeDescriptor.cs
- AnchoredBlock.cs
- SoapElementAttribute.cs
- Vector3DCollectionConverter.cs
- ParallelLoopState.cs
- SafeHandles.cs
- RewritingProcessor.cs
- FontFamilyValueSerializer.cs
- EdmComplexTypeAttribute.cs
- CharStorage.cs
- InvalidProgramException.cs
- AmbiguousMatchException.cs
- NamedPipeActivation.cs
- TableStyle.cs
- MutexSecurity.cs
- FixedSOMGroup.cs
- ToolStripDropDownButton.cs
- WebConfigurationHostFileChange.cs
- QilSortKey.cs
- DependencySource.cs
- RegexReplacement.cs
- KeyedCollection.cs
- TypeUsage.cs
- ParallelEnumerableWrapper.cs
- DataTableMappingCollection.cs