Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeVariableDeclarationStatement.cs / 1 / CodeVariableDeclarationStatement.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; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeVariableDeclarationStatement : CodeStatement { private CodeTypeReference type; private string name; private CodeExpression initExpression; ////// Represents a local variable declaration. /// ////// public CodeVariableDeclarationStatement() { } ////// Initializes a new instance of ///. /// /// public CodeVariableDeclarationStatement(CodeTypeReference type, string name) { Type = type; Name = name; } ////// Initializes a new instance of ///using the specified type and name. /// /// public CodeVariableDeclarationStatement(string type, string name) { Type = new CodeTypeReference(type); Name = name; } ///[To be supplied.] ////// public CodeVariableDeclarationStatement(Type type, string name) { Type = new CodeTypeReference(type); Name = name; } ///[To be supplied.] ////// public CodeVariableDeclarationStatement(CodeTypeReference type, string name, CodeExpression initExpression) { Type = type; Name = name; InitExpression = initExpression; } ////// Initializes a new instance of ///using the specified type, name and /// initialization expression. /// /// public CodeVariableDeclarationStatement(string type, string name, CodeExpression initExpression) { Type = new CodeTypeReference(type); Name = name; InitExpression = initExpression; } ///[To be supplied.] ////// public CodeVariableDeclarationStatement(Type type, string name, CodeExpression initExpression) { Type = new CodeTypeReference(type); Name = name; InitExpression = initExpression; } ///[To be supplied.] ////// public CodeExpression InitExpression { get { return initExpression; } set { initExpression = value; } } ////// Gets or sets the initialization expression for the variable. /// ////// public string Name { get { return (name == null) ? string.Empty : name; } set { name = value; } } ////// Gets or sets the name of the variable. /// ////// public CodeTypeReference Type { get { if (type == null) { type = new CodeTypeReference(""); } return type; } set { type = value; } } } }/// Gets or sets the type of the variable. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NullReferenceException.cs
- Accessible.cs
- BitArray.cs
- ObjectListComponentEditor.cs
- ZipIOExtraField.cs
- ActivityScheduledRecord.cs
- FormView.cs
- ResolveNameEventArgs.cs
- PermissionAttributes.cs
- CollectionsUtil.cs
- XmlUtf8RawTextWriter.cs
- FontCacheUtil.cs
- HttpInputStream.cs
- CollectionViewGroup.cs
- ProfilePropertySettings.cs
- ReaderWriterLock.cs
- MeshGeometry3D.cs
- ImageField.cs
- NavigationProperty.cs
- TCEAdapterGenerator.cs
- EntityContainerEmitter.cs
- PopupEventArgs.cs
- AspNetSynchronizationContext.cs
- EventlogProvider.cs
- _ConnectionGroup.cs
- WinInetCache.cs
- URL.cs
- XmlComplianceUtil.cs
- FastEncoder.cs
- ChineseLunisolarCalendar.cs
- ToolStripItemDesigner.cs
- GrammarBuilderBase.cs
- ToolCreatedEventArgs.cs
- ReferencedCollectionType.cs
- DelayedRegex.cs
- BindingGroup.cs
- ArrayList.cs
- SafeThreadHandle.cs
- cryptoapiTransform.cs
- XmlCountingReader.cs
- TextOptions.cs
- MemberAssignmentAnalysis.cs
- CodeMemberField.cs
- SystemResourceKey.cs
- SiteMap.cs
- CryptoKeySecurity.cs
- ComEventsSink.cs
- ProcessManager.cs
- Aggregates.cs
- x509utils.cs
- WebPartCancelEventArgs.cs
- NativeWindow.cs
- MobileCapabilities.cs
- IteratorFilter.cs
- MappedMetaModel.cs
- Internal.cs
- FilterQuery.cs
- X509Utils.cs
- FormsIdentity.cs
- Animatable.cs
- EntityDataSourceQueryBuilder.cs
- SvcMapFileSerializer.cs
- ObservableCollection.cs
- WebUtil.cs
- ConstructorArgumentAttribute.cs
- StateMachineHelpers.cs
- ListBindingHelper.cs
- DesignBindingPropertyDescriptor.cs
- TraceLevelStore.cs
- MouseActionConverter.cs
- TableDetailsRow.cs
- DbSourceParameterCollection.cs
- LicenseProviderAttribute.cs
- DesignBindingValueUIHandler.cs
- ImpersonationContext.cs
- DataBoundControlAdapter.cs
- ExpressionDumper.cs
- ShaperBuffers.cs
- ComponentEditorPage.cs
- PropertyPathWorker.cs
- MarkedHighlightComponent.cs
- TextMetrics.cs
- Helpers.cs
- Point3D.cs
- InfoCardMasterKey.cs
- CodeBlockBuilder.cs
- Rules.cs
- TextEmbeddedObject.cs
- DoubleUtil.cs
- EncoderFallback.cs
- SiteMapProvider.cs
- EventProvider.cs
- Byte.cs
- NavigatingCancelEventArgs.cs
- UserUseLicenseDictionaryLoader.cs
- LinkConverter.cs
- SafePointer.cs
- TrustLevel.cs
- DependsOnAttribute.cs
- InitializerFacet.cs