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
- DocumentPageHost.cs
- RtfFormatStack.cs
- PeerTransportListenAddressValidatorAttribute.cs
- TextRunCacheImp.cs
- WpfMemberInvoker.cs
- UIElement3D.cs
- DescriptionAttribute.cs
- dbenumerator.cs
- DataListCommandEventArgs.cs
- ObjectCacheSettings.cs
- NonVisualControlAttribute.cs
- DataSysAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- XPathNodeInfoAtom.cs
- RegexWorker.cs
- DataGridViewElement.cs
- MessagePropertyDescription.cs
- CodeCommentStatement.cs
- UriScheme.cs
- TreeWalker.cs
- PrinterUnitConvert.cs
- RequestCachingSection.cs
- NumericPagerField.cs
- WebProxyScriptElement.cs
- ToolStripDesignerAvailabilityAttribute.cs
- JsonFormatReaderGenerator.cs
- NeutralResourcesLanguageAttribute.cs
- MaskedTextProvider.cs
- CompilerTypeWithParams.cs
- ModifierKeysConverter.cs
- CryptoHandle.cs
- GcHandle.cs
- SingleStorage.cs
- ControlUtil.cs
- ObjectMemberMapping.cs
- CodeExpressionStatement.cs
- TextAdaptor.cs
- DataServiceRequest.cs
- ToolStripButton.cs
- SubpageParagraph.cs
- EntityCommandExecutionException.cs
- RetrieveVirtualItemEventArgs.cs
- ResourcePool.cs
- SmtpFailedRecipientException.cs
- TraceInternal.cs
- XmlSchemaExternal.cs
- CodeExpressionStatement.cs
- AssertFilter.cs
- ConstraintConverter.cs
- COSERVERINFO.cs
- DependencyObjectType.cs
- GlyphRunDrawing.cs
- CodeSnippetCompileUnit.cs
- StatusBarDrawItemEvent.cs
- SelectionHighlightInfo.cs
- RemotingServices.cs
- DropDownButton.cs
- DataGridViewCellFormattingEventArgs.cs
- OutputCacheProfile.cs
- Baml6Assembly.cs
- HandoffBehavior.cs
- FacetDescriptionElement.cs
- SafePEFileHandle.cs
- BamlCollectionHolder.cs
- NativeMethods.cs
- RunInstallerAttribute.cs
- InternalEnumValidatorAttribute.cs
- SHA512Managed.cs
- DataGridViewTextBoxCell.cs
- HTMLTextWriter.cs
- SafeFileMappingHandle.cs
- WindowsListViewItemStartMenu.cs
- SessionStateItemCollection.cs
- QilStrConcatenator.cs
- updatecommandorderer.cs
- TableProviderWrapper.cs
- ListQueryResults.cs
- TraceXPathNavigator.cs
- QilIterator.cs
- HttpCapabilitiesSectionHandler.cs
- RegexBoyerMoore.cs
- ExpressionEvaluator.cs
- fixedPageContentExtractor.cs
- WebPartMovingEventArgs.cs
- ValueType.cs
- PinnedBufferMemoryStream.cs
- smtpconnection.cs
- StateInitialization.cs
- WindowsFormsSynchronizationContext.cs
- TraceContextRecord.cs
- OpenTypeLayoutCache.cs
- Rijndael.cs
- DbConnectionHelper.cs
- XmlExtensionFunction.cs
- ALinqExpressionVisitor.cs
- AbandonedMutexException.cs
- MemoryStream.cs
- DataListGeneralPage.cs
- DbParameterCollection.cs
- WebEncodingValidatorAttribute.cs