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
- PropertyMetadata.cs
- ResizeGrip.cs
- ClientSettingsProvider.cs
- MonitoringDescriptionAttribute.cs
- UInt64.cs
- DataTransferEventArgs.cs
- AssemblyAttributesGoHere.cs
- FixedPageStructure.cs
- SafeFileMappingHandle.cs
- QilTypeChecker.cs
- StrokeNodeOperations.cs
- PngBitmapEncoder.cs
- Camera.cs
- ByteStack.cs
- WindowsListViewGroup.cs
- Schema.cs
- HttpPostedFile.cs
- SQLByte.cs
- TransactionInformation.cs
- DBConnectionString.cs
- XmlTypeAttribute.cs
- StorageRoot.cs
- ResourceSetExpression.cs
- Crc32.cs
- XmlWellformedWriter.cs
- ManipulationCompletedEventArgs.cs
- CodePageEncoding.cs
- DiffuseMaterial.cs
- DocumentEventArgs.cs
- Win32SafeHandles.cs
- securestring.cs
- HijriCalendar.cs
- DataBindingCollection.cs
- DisposableCollectionWrapper.cs
- TranslateTransform3D.cs
- GPStream.cs
- CustomValidator.cs
- ViewStateModeByIdAttribute.cs
- DataPointer.cs
- WeakReferenceKey.cs
- XmlSchemaExporter.cs
- DataGridAddNewRow.cs
- PipeConnection.cs
- MailDefinition.cs
- NotifyIcon.cs
- UIElement.cs
- SvcMapFileLoader.cs
- UrlMappingsSection.cs
- LinqDataView.cs
- Token.cs
- GeneralTransform3DGroup.cs
- DbMetaDataCollectionNames.cs
- XmlDataImplementation.cs
- StrongBox.cs
- Socket.cs
- IncomingWebResponseContext.cs
- ValueTypeIndexerReference.cs
- ToolTipAutomationPeer.cs
- ToolStripLabel.cs
- CompilerWrapper.cs
- SafeMILHandle.cs
- StorageEndPropertyMapping.cs
- BindingExpressionUncommonField.cs
- SelectionItemPattern.cs
- WebBrowser.cs
- XmlILIndex.cs
- AuthenticationService.cs
- xsdvalidator.cs
- MatchingStyle.cs
- MetabaseServerConfig.cs
- Control.cs
- AsyncOperation.cs
- CacheMemory.cs
- sqlinternaltransaction.cs
- AsymmetricKeyExchangeFormatter.cs
- TransactionOptions.cs
- ObjectComplexPropertyMapping.cs
- CipherData.cs
- PerformanceCounterPermission.cs
- TypeDescriptionProviderAttribute.cs
- ConfigurationSettings.cs
- BinaryWriter.cs
- CounterSet.cs
- ForwardPositionQuery.cs
- DataGridViewRowStateChangedEventArgs.cs
- DatatypeImplementation.cs
- NavigatorInput.cs
- BackgroundWorker.cs
- BindingCollection.cs
- ContainerUIElement3D.cs
- FlowNode.cs
- ConfigurationManagerHelper.cs
- ApplicationDirectoryMembershipCondition.cs
- Serializer.cs
- PropertiesTab.cs
- ThreadStateException.cs
- SqlRemoveConstantOrderBy.cs
- RouteValueDictionary.cs
- URIFormatException.cs
- IriParsingElement.cs