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
- BindingContext.cs
- DataGridPagerStyle.cs
- SerializationObjectManager.cs
- ExpressionDumper.cs
- JsonEnumDataContract.cs
- DataTableExtensions.cs
- DependsOnAttribute.cs
- LoginAutoFormat.cs
- CodeArrayCreateExpression.cs
- DefaultValueConverter.cs
- PrtTicket_Base.cs
- PreProcessInputEventArgs.cs
- versioninfo.cs
- ModelItemCollection.cs
- BitmapCodecInfo.cs
- RequiredAttributeAttribute.cs
- GridViewSortEventArgs.cs
- DropShadowEffect.cs
- DataGridViewButtonCell.cs
- EventLogInternal.cs
- ComponentResourceKey.cs
- ToolStripDropDownButton.cs
- ActivityWithResultConverter.cs
- OutOfMemoryException.cs
- ByteConverter.cs
- Identity.cs
- ToolStripSettings.cs
- TextFormatterImp.cs
- ProfileProvider.cs
- And.cs
- TextRangeProviderWrapper.cs
- DbFunctionCommandTree.cs
- BindingBase.cs
- ResXBuildProvider.cs
- CheckedListBox.cs
- XmlReaderSettings.cs
- OperationDescriptionCollection.cs
- LineGeometry.cs
- COM2PictureConverter.cs
- SolidBrush.cs
- ProcessHostFactoryHelper.cs
- brushes.cs
- ToolStripMenuItem.cs
- PathSegmentCollection.cs
- ViewBase.cs
- LongMinMaxAggregationOperator.cs
- GraphicsPathIterator.cs
- HttpRuntime.cs
- DataGridCommandEventArgs.cs
- SplitterDesigner.cs
- Stopwatch.cs
- TableLayoutSettings.cs
- ViewSimplifier.cs
- Convert.cs
- ExpressionParser.cs
- AdPostCacheSubstitution.cs
- DataListComponentEditor.cs
- ImageInfo.cs
- ServiceMoniker.cs
- HMACSHA1.cs
- RealizationContext.cs
- DragCompletedEventArgs.cs
- PatternMatcher.cs
- TaiwanLunisolarCalendar.cs
- UpdateProgress.cs
- TableCellCollection.cs
- XmlSchemaType.cs
- XmlDocumentType.cs
- AppModelKnownContentFactory.cs
- LayoutManager.cs
- EventMappingSettingsCollection.cs
- SemaphoreSecurity.cs
- ListDesigner.cs
- WCFServiceClientProxyGenerator.cs
- AndCondition.cs
- BrushMappingModeValidation.cs
- SourceItem.cs
- FlowNode.cs
- ScriptModule.cs
- HtmlEmptyTagControlBuilder.cs
- HtmlMeta.cs
- CodeDirectoryCompiler.cs
- RepeatBehaviorConverter.cs
- GridPattern.cs
- PropVariant.cs
- TextEditorCopyPaste.cs
- XmlSchemaAnnotated.cs
- ApplicationActivator.cs
- ToolStripRenderEventArgs.cs
- ToolStripProgressBar.cs
- CuspData.cs
- DocumentCollection.cs
- WebSysDisplayNameAttribute.cs
- ChildrenQuery.cs
- ClientBuildManager.cs
- AddInDeploymentState.cs
- ResourceReferenceExpression.cs
- Rules.cs
- ScriptingWebServicesSectionGroup.cs
- MarkupWriter.cs