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
- FormattedText.cs
- UIElementParagraph.cs
- StubHelpers.cs
- LiteralTextContainerControlBuilder.cs
- VariantWrapper.cs
- ExpandCollapseIsCheckedConverter.cs
- MasterPageBuildProvider.cs
- BuildProvidersCompiler.cs
- X509ImageLogo.cs
- FullTrustAssembly.cs
- Composition.cs
- IImplicitResourceProvider.cs
- DataGrid.cs
- OutgoingWebRequestContext.cs
- StringAttributeCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- IPAddress.cs
- RegexCompiler.cs
- ConsoleTraceListener.cs
- NativeMethodsCLR.cs
- shaperfactoryquerycachekey.cs
- PointCollection.cs
- NameSpaceExtractor.cs
- SafeViewOfFileHandle.cs
- CharacterMetricsDictionary.cs
- Style.cs
- LocatorGroup.cs
- SkewTransform.cs
- SqlTypeSystemProvider.cs
- TextEncodedRawTextWriter.cs
- Style.cs
- EventBuilder.cs
- OpenTypeCommon.cs
- BadImageFormatException.cs
- HtmlHistory.cs
- AppearanceEditorPart.cs
- JoinTreeNode.cs
- CardSpaceSelector.cs
- ExpressionCopier.cs
- CharacterShapingProperties.cs
- cookie.cs
- DocumentPage.cs
- BinaryMessageEncodingElement.cs
- SiblingIterators.cs
- ValidatingPropertiesEventArgs.cs
- DataSourceNameHandler.cs
- HttpCookieCollection.cs
- TransformPatternIdentifiers.cs
- BackgroundWorker.cs
- LexicalChunk.cs
- AesManaged.cs
- SystemIPInterfaceStatistics.cs
- UserNameSecurityTokenProvider.cs
- MetadataCache.cs
- LogExtent.cs
- SHA512.cs
- BaseValidatorDesigner.cs
- FixedSOMLineRanges.cs
- MarshalByRefObject.cs
- MessagePropertyFilter.cs
- HashAlgorithm.cs
- DispatcherEventArgs.cs
- InvalidCommandTreeException.cs
- TextElement.cs
- EntityViewContainer.cs
- DataGridColumn.cs
- PropertyMapper.cs
- RC2CryptoServiceProvider.cs
- UnknownMessageReceivedEventArgs.cs
- AppDomainAttributes.cs
- RunClient.cs
- SqlFunctionAttribute.cs
- AssemblyAttributesGoHere.cs
- SafeIUnknown.cs
- IsolatedStorageFile.cs
- ToolboxItemWrapper.cs
- ListViewContainer.cs
- PeerResolverSettings.cs
- PtsContext.cs
- WebResourceAttribute.cs
- UnaryQueryOperator.cs
- SrgsRule.cs
- ConnectionManagementElementCollection.cs
- SafeCryptContextHandle.cs
- CompensateDesigner.cs
- HttpResponseHeader.cs
- DockProviderWrapper.cs
- TypeSystem.cs
- ProcessProtocolHandler.cs
- FieldDescriptor.cs
- SQLBinary.cs
- XmlSchemaType.cs
- LockRecursionException.cs
- SymbolType.cs
- ProgressBar.cs
- ComponentManagerBroker.cs
- MimePart.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- ProxyHwnd.cs
- InvalidWMPVersionException.cs