Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeConditionStatement.cs / 1 / CodeConditionStatement.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 CodeConditionStatement : CodeStatement { private CodeExpression condition; private CodeStatementCollection trueStatments = new CodeStatementCollection(); private CodeStatementCollection falseStatments = new CodeStatementCollection(); ////// Represents a basic if statement. /// ////// public CodeConditionStatement() { } ////// Initializes a new instance of ///. /// /// public CodeConditionStatement(CodeExpression condition, params CodeStatement[] trueStatements) { Condition = condition; TrueStatements.AddRange(trueStatements); } ////// Initializes a new instance of ///. /// /// public CodeConditionStatement(CodeExpression condition, CodeStatement[] trueStatements, CodeStatement[] falseStatements) { Condition = condition; TrueStatements.AddRange(trueStatements); FalseStatements.AddRange(falseStatements); } ////// Initializes a new instance of ///that can represent an if.. /// else statement. /// /// public CodeExpression Condition { get { return condition; } set { condition = value; } } ////// Gets or sets /// the condition to test for ///. /// /// public CodeStatementCollection TrueStatements { get { return trueStatments; } } ////// Gets or sets /// the statements to execute if test condition is ///. /// /// public CodeStatementCollection FalseStatements { get { return falseStatments; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets /// the statements to /// execute if test condition is ///and there is an else /// clause. /// // 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 CodeConditionStatement : CodeStatement { private CodeExpression condition; private CodeStatementCollection trueStatments = new CodeStatementCollection(); private CodeStatementCollection falseStatments = new CodeStatementCollection(); ////// Represents a basic if statement. /// ////// public CodeConditionStatement() { } ////// Initializes a new instance of ///. /// /// public CodeConditionStatement(CodeExpression condition, params CodeStatement[] trueStatements) { Condition = condition; TrueStatements.AddRange(trueStatements); } ////// Initializes a new instance of ///. /// /// public CodeConditionStatement(CodeExpression condition, CodeStatement[] trueStatements, CodeStatement[] falseStatements) { Condition = condition; TrueStatements.AddRange(trueStatements); FalseStatements.AddRange(falseStatements); } ////// Initializes a new instance of ///that can represent an if.. /// else statement. /// /// public CodeExpression Condition { get { return condition; } set { condition = value; } } ////// Gets or sets /// the condition to test for ///. /// /// public CodeStatementCollection TrueStatements { get { return trueStatments; } } ////// Gets or sets /// the statements to execute if test condition is ///. /// /// public CodeStatementCollection FalseStatements { get { return falseStatments; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets /// the statements to /// execute if test condition is ///and there is an else /// clause. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowControlEndpoint.cs
- ValueOfAction.cs
- AstTree.cs
- UniqueID.cs
- Win32Exception.cs
- FormClosedEvent.cs
- MemberCollection.cs
- InheritedPropertyChangedEventArgs.cs
- UrlAuthorizationModule.cs
- ColorBuilder.cs
- MultiPropertyDescriptorGridEntry.cs
- ListViewItemEventArgs.cs
- ScriptControlManager.cs
- DataGridParentRows.cs
- InkCollectionBehavior.cs
- InvalidFilterCriteriaException.cs
- RegexMatchCollection.cs
- TcpConnectionPoolSettings.cs
- OleDbErrorCollection.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ToolboxDataAttribute.cs
- CodeTypeDeclarationCollection.cs
- linebase.cs
- BridgeDataReader.cs
- ProcessHostMapPath.cs
- Rights.cs
- Rect3D.cs
- StaticContext.cs
- MarshalDirectiveException.cs
- ModifierKeysValueSerializer.cs
- BaseCollection.cs
- DecimalAnimationBase.cs
- DataSysAttribute.cs
- ScalarOps.cs
- PresentationAppDomainManager.cs
- DefaultValueAttribute.cs
- SafeCryptContextHandle.cs
- PartialCachingAttribute.cs
- WarningException.cs
- NetworkInformationPermission.cs
- AppSettingsExpressionEditor.cs
- SByteStorage.cs
- DeferredSelectedIndexReference.cs
- DropShadowEffect.cs
- EventDescriptorCollection.cs
- SafeCryptoHandles.cs
- WindowsTitleBar.cs
- ToolboxItem.cs
- ActivityDesignerAccessibleObject.cs
- TemplateField.cs
- SqlTrackingService.cs
- GeneralTransform.cs
- UserCancellationException.cs
- StringReader.cs
- AutomationProperty.cs
- BuildResultCache.cs
- TableLayout.cs
- UnsafeNativeMethods.cs
- NetworkInterface.cs
- Vector3DCollectionConverter.cs
- XNodeValidator.cs
- CallbackHandler.cs
- TextContainerHelper.cs
- XmlSerializationGeneratedCode.cs
- LogWriteRestartAreaState.cs
- DataColumn.cs
- SemaphoreSecurity.cs
- SizeLimitedCache.cs
- WebPartDisplayMode.cs
- ApplicationId.cs
- XmlSchemaSimpleContent.cs
- SourceInterpreter.cs
- AnonymousIdentificationSection.cs
- TextOutput.cs
- Publisher.cs
- TextParagraph.cs
- BitSet.cs
- Switch.cs
- ApplicationDirectoryMembershipCondition.cs
- DataColumnCollection.cs
- PointAnimationUsingPath.cs
- CounterCreationData.cs
- SizeF.cs
- ToolStripSettings.cs
- StylusPointProperty.cs
- WebFormsRootDesigner.cs
- FullTextLine.cs
- Int32RectValueSerializer.cs
- IgnoreFileBuildProvider.cs
- XmlSchemaFacet.cs
- WebControl.cs
- RijndaelManaged.cs
- Base64Encoder.cs
- RegexWorker.cs
- Int32AnimationUsingKeyFrames.cs
- FunctionQuery.cs
- DesignerAutoFormatStyle.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DeferredElementTreeState.cs
- FormViewUpdatedEventArgs.cs