Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BitmapCacheBrush.cs
- OperationAbortedException.cs
- MediaSystem.cs
- PrimaryKeyTypeConverter.cs
- ParseHttpDate.cs
- SqlBulkCopy.cs
- Table.cs
- ObjectListTitleAttribute.cs
- TemplateXamlTreeBuilder.cs
- UserPersonalizationStateInfo.cs
- MoveSizeWinEventHandler.cs
- ConvertersCollection.cs
- contentDescriptor.cs
- FrameworkElement.cs
- TextServicesProperty.cs
- ListBoxItemWrapperAutomationPeer.cs
- Rfc2898DeriveBytes.cs
- UserControlParser.cs
- LongMinMaxAggregationOperator.cs
- AlternationConverter.cs
- ExecutorLocksHeldException.cs
- ClrPerspective.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TextRenderer.cs
- PerformanceCountersElement.cs
- DataTableCollection.cs
- PrimitiveRenderer.cs
- DynamicArgumentDesigner.xaml.cs
- UnsafeNativeMethods.cs
- ConstantSlot.cs
- WebRequest.cs
- ExtensibleClassFactory.cs
- CodeTypeDelegate.cs
- CLRBindingWorker.cs
- TextBox.cs
- CachedPathData.cs
- UpdateProgress.cs
- RSACryptoServiceProvider.cs
- PreviewPageInfo.cs
- PageCache.cs
- HtmlInputHidden.cs
- DateTimeSerializationSection.cs
- ListComponentEditor.cs
- FrameSecurityDescriptor.cs
- PersonalizationDictionary.cs
- ListMarkerLine.cs
- IndexerNameAttribute.cs
- CryptoHelper.cs
- DropTarget.cs
- TdsValueSetter.cs
- InstanceBehavior.cs
- StrokeCollection2.cs
- DrawListViewItemEventArgs.cs
- infer.cs
- QueryContext.cs
- SourceChangedEventArgs.cs
- CommandCollectionEditor.cs
- RSAProtectedConfigurationProvider.cs
- RequestStatusBarUpdateEventArgs.cs
- CustomAttribute.cs
- AbstractExpressions.cs
- DataSourceXmlClassAttribute.cs
- DigestTraceRecordHelper.cs
- RuleSettings.cs
- AtomMaterializer.cs
- Models.cs
- SoundPlayerAction.cs
- SyndicationFeed.cs
- DataTrigger.cs
- SpecialNameAttribute.cs
- BindToObject.cs
- CodeTypeMember.cs
- SectionUpdates.cs
- HuffCodec.cs
- ComplexTypeEmitter.cs
- BasicExpressionVisitor.cs
- AttributeConverter.cs
- parserscommon.cs
- sqlpipe.cs
- ObjectSecurity.cs
- ListViewSelectEventArgs.cs
- TemplateKeyConverter.cs
- DataListAutoFormat.cs
- ImageListStreamer.cs
- SelectionEditingBehavior.cs
- MultiBindingExpression.cs
- SchemaMerger.cs
- ColorDialog.cs
- TraceUtility.cs
- CodeVariableReferenceExpression.cs
- ListChangedEventArgs.cs
- DataSourceControl.cs
- FileCodeGroup.cs
- ApplicationInfo.cs
- documentation.cs
- TypeBrowser.xaml.cs
- IChannel.cs
- DefaultSettingsSection.cs
- DrawingContextDrawingContextWalker.cs
- DiscardableAttribute.cs