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
- ValidationUtility.cs
- ViewStateException.cs
- SqlCommandSet.cs
- GroupQuery.cs
- BamlTreeNode.cs
- ToolStripComboBox.cs
- WorkflowServiceHost.cs
- XPathNavigator.cs
- Message.cs
- MarshalByValueComponent.cs
- CommonDialog.cs
- WebBaseEventKeyComparer.cs
- EndpointDiscoveryElement.cs
- DependencyPropertyHelper.cs
- ResourceIDHelper.cs
- TlsSspiNegotiation.cs
- XmlAttributeAttribute.cs
- DomainConstraint.cs
- SplitterEvent.cs
- HitTestFilterBehavior.cs
- OracleSqlParser.cs
- DataFormats.cs
- GiveFeedbackEventArgs.cs
- WorkflowQueueInfo.cs
- SqlBulkCopyColumnMappingCollection.cs
- FileUpload.cs
- PathData.cs
- SafeNativeMethodsMilCoreApi.cs
- WindowsScrollBarBits.cs
- HostingEnvironment.cs
- TypeHelpers.cs
- BinaryObjectInfo.cs
- DataBinding.cs
- OLEDB_Enum.cs
- SafeNativeMethodsMilCoreApi.cs
- Color.cs
- ListBindableAttribute.cs
- StylusButtonCollection.cs
- MonthCalendar.cs
- RepeaterCommandEventArgs.cs
- GeometryDrawing.cs
- CatalogZone.cs
- AQNBuilder.cs
- webproxy.cs
- XappLauncher.cs
- DependencyPropertyValueSerializer.cs
- HealthMonitoringSection.cs
- PolyLineSegmentFigureLogic.cs
- DesignerPainter.cs
- ForwardPositionQuery.cs
- TabletCollection.cs
- XmlDocument.cs
- RtfControlWordInfo.cs
- WebMessageBodyStyleHelper.cs
- NativeMethods.cs
- ProfileSettings.cs
- SchemaElement.cs
- BitmapEffectDrawingContextState.cs
- Symbol.cs
- ObjectStateFormatter.cs
- BitmapEffectInput.cs
- AcceleratedTokenProvider.cs
- QilReplaceVisitor.cs
- PeerCollaborationPermission.cs
- DataControlFieldCell.cs
- StringSource.cs
- Util.cs
- MessageBox.cs
- GB18030Encoding.cs
- EmptyEnumerator.cs
- SafeNativeMemoryHandle.cs
- ActivitySurrogate.cs
- CallId.cs
- ZipIOExtraField.cs
- Pkcs7Recipient.cs
- RegionIterator.cs
- DbConnectionStringCommon.cs
- TreeNodeSelectionProcessor.cs
- SqlDataSourceFilteringEventArgs.cs
- XmlSchemaInclude.cs
- ResXResourceWriter.cs
- OleDbRowUpdatingEvent.cs
- PictureBox.cs
- ValidatingReaderNodeData.cs
- UpdateRecord.cs
- FactoryMaker.cs
- Lease.cs
- UserMapPath.cs
- XmlDataProvider.cs
- PasswordDeriveBytes.cs
- XmlSchemas.cs
- InternalControlCollection.cs
- Page.cs
- brushes.cs
- DefaultPrintController.cs
- MetadataArtifactLoaderCompositeFile.cs
- DynamicValidatorEventArgs.cs
- CorrelationService.cs
- AnnotationResourceChangedEventArgs.cs
- PersonalizablePropertyEntry.cs