Code:
/ DotNET / DotNET / 8.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
- Cursor.cs
- AgileSafeNativeMemoryHandle.cs
- Vector3dCollection.cs
- SelectionItemProviderWrapper.cs
- HeaderedContentControl.cs
- XmlHierarchyData.cs
- DataSourceBooleanViewSchemaConverter.cs
- UnionCodeGroup.cs
- ConfigurationSection.cs
- XmlElementAttributes.cs
- ThemeableAttribute.cs
- DecoderNLS.cs
- XsdBuildProvider.cs
- ButtonColumn.cs
- TimeSpanValidator.cs
- TimelineClockCollection.cs
- KeyToListMap.cs
- Single.cs
- ColumnResizeUndoUnit.cs
- BufferedStream2.cs
- recordstatescratchpad.cs
- WebBrowserDocumentCompletedEventHandler.cs
- validation.cs
- SignatureDescription.cs
- _CommandStream.cs
- MessagePropertyDescription.cs
- UpdateTranslator.cs
- DbParameterHelper.cs
- CommandDevice.cs
- RSAPKCS1SignatureFormatter.cs
- EntityDataSourceChangedEventArgs.cs
- SQLInt32.cs
- Compilation.cs
- SoapAttributeAttribute.cs
- ElementFactory.cs
- RenderingBiasValidation.cs
- InfoCardCryptoHelper.cs
- EmptyStringExpandableObjectConverter.cs
- EntityViewContainer.cs
- XmlSchemaSimpleContent.cs
- LoginCancelEventArgs.cs
- AsymmetricKeyExchangeDeformatter.cs
- MsdtcClusterUtils.cs
- DoubleAnimation.cs
- DataTableExtensions.cs
- SmtpNegotiateAuthenticationModule.cs
- HyperLinkField.cs
- HttpAsyncResult.cs
- Util.cs
- XmlNodeChangedEventManager.cs
- CurrentChangedEventManager.cs
- CalendarDay.cs
- CreateUserErrorEventArgs.cs
- PlatformNotSupportedException.cs
- ResourceAttributes.cs
- BamlLocalizer.cs
- PenContexts.cs
- ServerType.cs
- EncryptedKeyIdentifierClause.cs
- StrokeNodeOperations2.cs
- QilIterator.cs
- SystemFonts.cs
- BamlTreeMap.cs
- DataTableCollection.cs
- PasswordDeriveBytes.cs
- FormViewRow.cs
- _HeaderInfoTable.cs
- RawMouseInputReport.cs
- FixedSOMPageElement.cs
- LeftCellWrapper.cs
- LookupBindingPropertiesAttribute.cs
- SecurityState.cs
- ClientData.cs
- AuthenticationManager.cs
- Attributes.cs
- DynamicActivityXamlReader.cs
- PkcsMisc.cs
- ChannelEndpointElementCollection.cs
- GatewayIPAddressInformationCollection.cs
- odbcmetadatacollectionnames.cs
- UpdateInfo.cs
- LinqDataSourceContextData.cs
- Brushes.cs
- FillBehavior.cs
- RuleSettings.cs
- FileDataSourceCache.cs
- Accessible.cs
- BasicExpandProvider.cs
- PerformanceCounterLib.cs
- LookupBindingPropertiesAttribute.cs
- WrappedKeySecurityTokenParameters.cs
- Speller.cs
- VectorConverter.cs
- XmlSchemaType.cs
- RadioButtonFlatAdapter.cs
- RequestUriProcessor.cs
- HttpModulesSection.cs
- WebPartVerbCollection.cs
- FacetChecker.cs
- Utils.cs