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
- __ConsoleStream.cs
- AlignmentYValidation.cs
- UnlockInstanceAsyncResult.cs
- Model3D.cs
- HttpHostedTransportConfiguration.cs
- HMACRIPEMD160.cs
- WebPartConnectionsCancelEventArgs.cs
- ApplyTemplatesAction.cs
- Visual3DCollection.cs
- SQLDateTimeStorage.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SelfIssuedAuthAsymmetricKey.cs
- DBParameter.cs
- ProgressPage.cs
- RequiredAttributeAttribute.cs
- CryptographicAttribute.cs
- AudioBase.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ViewManager.cs
- TemplateField.cs
- ObjectPropertyMapping.cs
- RoutedUICommand.cs
- InvalidOperationException.cs
- SqlDataSourceSelectingEventArgs.cs
- XmlNode.cs
- DBCommandBuilder.cs
- CollectionContainer.cs
- SafeEventHandle.cs
- ContractTypeNameCollection.cs
- Viewport3DAutomationPeer.cs
- UrlPath.cs
- Command.cs
- RankException.cs
- DataRowComparer.cs
- GenericUriParser.cs
- FixedTextContainer.cs
- FontCollection.cs
- VisualBrush.cs
- WorkflowRuntimeServiceElementCollection.cs
- SortDescription.cs
- XamlDesignerSerializationManager.cs
- OutgoingWebResponseContext.cs
- WaitHandle.cs
- NodeInfo.cs
- HttpCapabilitiesBase.cs
- TrackingCondition.cs
- ListControlConvertEventArgs.cs
- TypeDescriptorFilterService.cs
- EntityKey.cs
- RunClient.cs
- UnsafeNativeMethods.cs
- CodeDirectoryCompiler.cs
- DataGridViewBindingCompleteEventArgs.cs
- DataSourceBooleanViewSchemaConverter.cs
- ImageMetadata.cs
- OleDbInfoMessageEvent.cs
- DataPagerFieldCollection.cs
- ZipIOLocalFileHeader.cs
- PersianCalendar.cs
- EntitySqlQueryCacheKey.cs
- ImageSource.cs
- StagingAreaInputItem.cs
- KeyInterop.cs
- BrowserCapabilitiesFactory.cs
- ScopelessEnumAttribute.cs
- Hyperlink.cs
- ZipIOLocalFileHeader.cs
- KnownTypes.cs
- SuppressIldasmAttribute.cs
- SystemMulticastIPAddressInformation.cs
- ComboBox.cs
- _NegoStream.cs
- BroadcastEventHelper.cs
- BitmapMetadataEnumerator.cs
- UnsafeNativeMethods.cs
- ListItemCollection.cs
- DbParameterCollection.cs
- SqlFunctionAttribute.cs
- XmlDictionary.cs
- figurelengthconverter.cs
- CollectionChangedEventManager.cs
- DecimalSumAggregationOperator.cs
- TypeTypeConverter.cs
- MissingManifestResourceException.cs
- ZipFileInfo.cs
- SecurityResources.cs
- AxisAngleRotation3D.cs
- PolicyLevel.cs
- PropertyRecord.cs
- ReadOnlyDataSourceView.cs
- BitmapEffectInput.cs
- Currency.cs
- WebBrowserContainer.cs
- DesignerToolboxInfo.cs
- PointIndependentAnimationStorage.cs
- PartialTrustVisibleAssembliesSection.cs
- SystemThemeKey.cs
- ArrayElementGridEntry.cs
- BypassElementCollection.cs
- EditBehavior.cs