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
- UIElementPropertyUndoUnit.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- GroupQuery.cs
- NameObjectCollectionBase.cs
- Typography.cs
- Base64Stream.cs
- ByteConverter.cs
- CorrelationInitializer.cs
- JoinTreeSlot.cs
- DesignerLoader.cs
- TabletDevice.cs
- WindowsScrollBar.cs
- WindowsRebar.cs
- BaseTemplateBuildProvider.cs
- VersionedStreamOwner.cs
- SystemWebCachingSectionGroup.cs
- MimePart.cs
- QualifiedId.cs
- SharedDp.cs
- Geometry3D.cs
- DateTimeOffset.cs
- FormsAuthenticationModule.cs
- EdmError.cs
- SqlCacheDependencySection.cs
- SQLString.cs
- HashHelper.cs
- ComplexBindingPropertiesAttribute.cs
- RewritingSimplifier.cs
- XmlWrappingReader.cs
- AvTraceDetails.cs
- ValidationSummary.cs
- DynamicArgumentDesigner.xaml.cs
- ClientSideProviderDescription.cs
- TreeNodeCollection.cs
- DeviceContext.cs
- SchemaImporter.cs
- Parser.cs
- Size3D.cs
- ErrorHandler.cs
- Token.cs
- EpmContentDeSerializerBase.cs
- XmlChildEnumerator.cs
- XmlReaderDelegator.cs
- EntityDataSourceDataSelectionPanel.cs
- TextFormattingConverter.cs
- BuildResultCache.cs
- WebPartEditVerb.cs
- StrongNameMembershipCondition.cs
- CanonicalXml.cs
- SqlInfoMessageEvent.cs
- LineServicesCallbacks.cs
- ControlPaint.cs
- CannotUnloadAppDomainException.cs
- FixedPage.cs
- AsyncOperationContext.cs
- JulianCalendar.cs
- XmlName.cs
- XamlParser.cs
- DefaultParameterValueAttribute.cs
- DataControlImageButton.cs
- DataControlImageButton.cs
- SynchronizedDispatch.cs
- IndicShape.cs
- WebBaseEventKeyComparer.cs
- MemoryStream.cs
- OptimizerPatterns.cs
- XmlSyndicationContent.cs
- DescriptionAttribute.cs
- HtmlContainerControl.cs
- LineSegment.cs
- LingerOption.cs
- OperationCanceledException.cs
- FlatButtonAppearance.cs
- Animatable.cs
- OperatorExpressions.cs
- StandardOleMarshalObject.cs
- baseaxisquery.cs
- HtmlTitle.cs
- SID.cs
- InfoCardTrace.cs
- DBCSCodePageEncoding.cs
- HtmlTernaryTree.cs
- DirectoryInfo.cs
- SingleAnimation.cs
- WebControlAdapter.cs
- DataBoundLiteralControl.cs
- Operator.cs
- NumberEdit.cs
- ITreeGenerator.cs
- Graphics.cs
- Image.cs
- BitmapEffectOutputConnector.cs
- DataListCommandEventArgs.cs
- Model3DCollection.cs
- ToolStripActionList.cs
- _AutoWebProxyScriptWrapper.cs
- DelegateTypeInfo.cs
- SQLBoolean.cs
- Listen.cs
- SelectManyQueryOperator.cs