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
- LayoutUtils.cs
- JoinSymbol.cs
- LiteralControl.cs
- Win32KeyboardDevice.cs
- HTTPRemotingHandler.cs
- TemplateEditingFrame.cs
- XamlPathDataSerializer.cs
- DBBindings.cs
- ObjectSet.cs
- WebEvents.cs
- QueryExpr.cs
- ComponentDispatcher.cs
- RepeatInfo.cs
- FixedDocument.cs
- OutputCacheEntry.cs
- ImageUrlEditor.cs
- StatusBarPanel.cs
- CodeDirectiveCollection.cs
- _UriTypeConverter.cs
- ToolBar.cs
- TextRangeSerialization.cs
- MessageDecoder.cs
- AnnotationAuthorChangedEventArgs.cs
- ControlBuilderAttribute.cs
- ValidationSummary.cs
- ConvertEvent.cs
- HwndMouseInputProvider.cs
- QueryContinueDragEvent.cs
- XmlDeclaration.cs
- Menu.cs
- Viewport3DAutomationPeer.cs
- BulletChrome.cs
- AudioSignalProblemOccurredEventArgs.cs
- XmlConvert.cs
- ProfileGroupSettingsCollection.cs
- HttpCacheParams.cs
- StructuralType.cs
- SqlWebEventProvider.cs
- ValidatedControlConverter.cs
- LogicalTreeHelper.cs
- HtmlUtf8RawTextWriter.cs
- RegistryPermission.cs
- ApplicationHost.cs
- SchemaImporterExtensionsSection.cs
- ScriptHandlerFactory.cs
- NaturalLanguageHyphenator.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- RoutedEvent.cs
- TreeChangeInfo.cs
- QuaternionAnimationBase.cs
- SqlDataReaderSmi.cs
- PointCollectionConverter.cs
- SecurityUtils.cs
- UnlockInstanceCommand.cs
- ResourceProviderFactory.cs
- StructuredType.cs
- HuffmanTree.cs
- SmiContextFactory.cs
- DynamicResourceExtensionConverter.cs
- StructuredTypeInfo.cs
- PrincipalPermission.cs
- MethodCallConverter.cs
- XmlBinaryReader.cs
- MemberDomainMap.cs
- QilPatternVisitor.cs
- FixedTextView.cs
- PathFigure.cs
- DataSourceUtil.cs
- TcpHostedTransportConfiguration.cs
- SchemaAttDef.cs
- DbConnectionPoolCounters.cs
- LookupBindingPropertiesAttribute.cs
- ICollection.cs
- BuildProvider.cs
- ResourceDisplayNameAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- FileSecurity.cs
- XmlTextEncoder.cs
- BinHexDecoder.cs
- SafeRegistryHandle.cs
- MultitargetingHelpers.cs
- TreeView.cs
- ListBoxChrome.cs
- DataGridViewComboBoxCell.cs
- CodeDirectiveCollection.cs
- HostUtils.cs
- StorageMappingItemCollection.cs
- PasswordRecoveryDesigner.cs
- PointKeyFrameCollection.cs
- SubMenuStyleCollection.cs
- Calendar.cs
- VectorCollectionValueSerializer.cs
- dbenumerator.cs
- DesignerVerb.cs
- XmlAtomicValue.cs
- FlowDocumentReaderAutomationPeer.cs
- UnsafeNetInfoNativeMethods.cs
- ISFTagAndGuidCache.cs
- VerticalAlignConverter.cs
- FontSourceCollection.cs