Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PropertyValueChangedEvent.cs
- XamlInterfaces.cs
- WebPartDescription.cs
- LongAverageAggregationOperator.cs
- BooleanConverter.cs
- ApplicationSecurityManager.cs
- UIElementHelper.cs
- PropertyNames.cs
- Type.cs
- HScrollProperties.cs
- SelectedDatesCollection.cs
- ToolboxBitmapAttribute.cs
- FtpWebResponse.cs
- FamilyMap.cs
- ConnectionStringSettingsCollection.cs
- GlyphElement.cs
- arabicshape.cs
- XPathDocumentIterator.cs
- RootAction.cs
- ObjectAssociationEndMapping.cs
- ClientSideProviderDescription.cs
- XamlParser.cs
- ExtendedPropertyCollection.cs
- MimeWriter.cs
- StateItem.cs
- RowBinding.cs
- URL.cs
- SetIterators.cs
- DataTransferEventArgs.cs
- BaseValidator.cs
- DivideByZeroException.cs
- SecurityPolicySection.cs
- TTSEvent.cs
- ConfigXmlCDataSection.cs
- XmlSchemaFacet.cs
- CellIdBoolean.cs
- HtmlAnchor.cs
- Annotation.cs
- NativeCppClassAttribute.cs
- FileUpload.cs
- HttpDictionary.cs
- SettingsContext.cs
- DiscoveryProxy.cs
- FontClient.cs
- FunctionDefinition.cs
- Panel.cs
- InkCanvasAutomationPeer.cs
- MinimizableAttributeTypeConverter.cs
- ProgressChangedEventArgs.cs
- LabelExpression.cs
- DataObjectEventArgs.cs
- SystemParameters.cs
- ScriptReferenceBase.cs
- QueryIntervalOp.cs
- BindableTemplateBuilder.cs
- CompiledXpathExpr.cs
- CompleteWizardStep.cs
- PassportPrincipal.cs
- LocalFileSettingsProvider.cs
- Identity.cs
- CollectionViewProxy.cs
- PageVisual.cs
- XmlParser.cs
- CollectionConverter.cs
- Int32RectValueSerializer.cs
- ScrollPatternIdentifiers.cs
- DescendantOverDescendantQuery.cs
- PagedDataSource.cs
- InheritablePropertyChangeInfo.cs
- ParenthesizePropertyNameAttribute.cs
- RtType.cs
- HuffmanTree.cs
- assemblycache.cs
- SqlCacheDependency.cs
- Vars.cs
- ApplicationFileParser.cs
- Scripts.cs
- Latin1Encoding.cs
- AddressingProperty.cs
- Menu.cs
- IdentityModelDictionary.cs
- GeneralTransform2DTo3DTo2D.cs
- SmiContext.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ScriptReferenceEventArgs.cs
- FigureHelper.cs
- _FtpControlStream.cs
- SchemaAttDef.cs
- DefaultTextStoreTextComposition.cs
- ColorBlend.cs
- MessageQueuePermissionEntryCollection.cs
- InlineCategoriesDocument.cs
- FileSecurity.cs
- CollectionEditVerbManager.cs
- HandlerFactoryWrapper.cs
- InternalBase.cs
- WebPartCloseVerb.cs
- xmlsaver.cs
- Expander.cs
- OracleDataAdapter.cs