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
- TextPatternIdentifiers.cs
- PropertyPathConverter.cs
- TextSchema.cs
- ValidationRule.cs
- ServiceOperationParameter.cs
- documentsequencetextcontainer.cs
- ToolStripStatusLabel.cs
- BuildProvider.cs
- XmlReturnReader.cs
- PositiveTimeSpanValidator.cs
- XPathBuilder.cs
- SettingsProviderCollection.cs
- SamlConditions.cs
- PermissionRequestEvidence.cs
- namescope.cs
- NativeCppClassAttribute.cs
- DataGridViewSortCompareEventArgs.cs
- LOSFormatter.cs
- EndpointAddressMessageFilterTable.cs
- TextEditorLists.cs
- TouchesCapturedWithinProperty.cs
- CaseStatement.cs
- AudioFormatConverter.cs
- QueryRewriter.cs
- IRCollection.cs
- FloaterBaseParaClient.cs
- EditorZoneBase.cs
- AutoGeneratedFieldProperties.cs
- AsymmetricSignatureDeformatter.cs
- ListViewHitTestInfo.cs
- XmlAttributeProperties.cs
- ValidationErrorCollection.cs
- XmlUrlResolver.cs
- ReflectionUtil.cs
- _DomainName.cs
- ProgramNode.cs
- ToolZone.cs
- CompoundFileIOPermission.cs
- Group.cs
- SQLInt16.cs
- ThicknessAnimation.cs
- ExecutionEngineException.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- HttpInputStream.cs
- ObjectQuery_EntitySqlExtensions.cs
- XmlTypeAttribute.cs
- ResourceProperty.cs
- ECDiffieHellmanPublicKey.cs
- ProxyAttribute.cs
- DataControlCommands.cs
- XmlSchemaElement.cs
- ToolTipAutomationPeer.cs
- Module.cs
- CheckBox.cs
- Point3D.cs
- SqlDependency.cs
- CaseCqlBlock.cs
- ExtensionSurface.cs
- XmlReflectionImporter.cs
- ItemAutomationPeer.cs
- BatchParser.cs
- BrowserCapabilitiesFactoryBase.cs
- StrokeDescriptor.cs
- MetabaseServerConfig.cs
- externdll.cs
- ConsoleKeyInfo.cs
- DecoderBestFitFallback.cs
- SignerInfo.cs
- LineServicesRun.cs
- SHA1.cs
- AdornerHitTestResult.cs
- LiteralDesigner.cs
- EntityDataSourceView.cs
- VisualStyleElement.cs
- XmlDocumentSerializer.cs
- _HelperAsyncResults.cs
- FormsAuthenticationUserCollection.cs
- TouchDevice.cs
- Win32.cs
- DataRelationCollection.cs
- GridViewCellAutomationPeer.cs
- ConfigurationLocation.cs
- XmlSchemaInclude.cs
- CompilerGlobalScopeAttribute.cs
- SynchronizedDispatch.cs
- IDataContractSurrogate.cs
- DataSourceView.cs
- InvalidProgramException.cs
- NullRuntimeConfig.cs
- ProgressBarRenderer.cs
- DrawingVisual.cs
- BrushValueSerializer.cs
- ParagraphResult.cs
- ListViewPagedDataSource.cs
- TextDecorationLocationValidation.cs
- SHA384Managed.cs
- FixedFlowMap.cs
- XmlElementAttribute.cs
- HostExecutionContextManager.cs
- DesignerTransaction.cs