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 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets the type of the variable. /// ///// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets the type of the variable. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaImport.cs
- OutputCacheProfileCollection.cs
- DisplayNameAttribute.cs
- StringValueSerializer.cs
- CriticalHandle.cs
- ScriptBehaviorDescriptor.cs
- TreeNodeStyleCollection.cs
- StandardOleMarshalObject.cs
- XmlSchemaSimpleType.cs
- RtfControls.cs
- WinEventQueueItem.cs
- ToolStripPanelRenderEventArgs.cs
- Hex.cs
- Hyperlink.cs
- XPathDocumentBuilder.cs
- MultiTargetingUtil.cs
- InputScopeAttribute.cs
- ImmutableAssemblyCacheEntry.cs
- DbParameterHelper.cs
- RTLAwareMessageBox.cs
- EntryIndex.cs
- SqlDelegatedTransaction.cs
- TreeViewTemplateSelector.cs
- InternalConfigRoot.cs
- DesignTableCollection.cs
- XmlSchemaImport.cs
- PerformanceCounterNameAttribute.cs
- ObjectSecurity.cs
- _UriTypeConverter.cs
- PathTooLongException.cs
- GlobalizationAssembly.cs
- TaiwanCalendar.cs
- XmlSerializerAssemblyAttribute.cs
- ApplicationServiceHelper.cs
- TCPListener.cs
- SetterBaseCollection.cs
- CellParaClient.cs
- DispatcherSynchronizationContext.cs
- RenderDataDrawingContext.cs
- fixedPageContentExtractor.cs
- DoubleAverageAggregationOperator.cs
- SqlInternalConnectionSmi.cs
- Regex.cs
- EntityClientCacheKey.cs
- Span.cs
- HighlightVisual.cs
- SpeakCompletedEventArgs.cs
- VersionPair.cs
- SortedSetDebugView.cs
- DeferredReference.cs
- TableLayoutColumnStyleCollection.cs
- bidPrivateBase.cs
- MethodCallTranslator.cs
- ProtocolsConfigurationEntry.cs
- CompensatableSequenceActivity.cs
- ReflectTypeDescriptionProvider.cs
- TemplateControlBuildProvider.cs
- DataGridTable.cs
- SqlTrackingWorkflowInstance.cs
- AudioSignalProblemOccurredEventArgs.cs
- ThumbAutomationPeer.cs
- GPRECT.cs
- StrokeNodeData.cs
- HwndHost.cs
- HelpKeywordAttribute.cs
- GestureRecognizer.cs
- WindowsPen.cs
- TcpServerChannel.cs
- HtmlInputControl.cs
- complextypematerializer.cs
- TdsParser.cs
- BrowserTree.cs
- ISAPIRuntime.cs
- BamlVersionHeader.cs
- SingleAnimationUsingKeyFrames.cs
- ObjectDataSourceSelectingEventArgs.cs
- GCHandleCookieTable.cs
- NativeMethods.cs
- BulletChrome.cs
- Asn1IntegerConverter.cs
- EntityParameter.cs
- SqlCacheDependency.cs
- ScriptingJsonSerializationSection.cs
- SqlEnums.cs
- Splitter.cs
- DesignerSerializationOptionsAttribute.cs
- StorageEndPropertyMapping.cs
- SystemIPAddressInformation.cs
- MobileComponentEditorPage.cs
- SoapConverter.cs
- ExpressionNormalizer.cs
- Socket.cs
- SmtpDigestAuthenticationModule.cs
- EditorOptionAttribute.cs
- RegistryPermission.cs
- XsltSettings.cs
- CodeTryCatchFinallyStatement.cs
- XmlDataContract.cs
- InstalledFontCollection.cs
- XmlAttribute.cs