Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeConditionStatement.cs / 1305376 / CodeConditionStatement.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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. /// // // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- XamlFigureLengthSerializer.cs
- TextRangeEditLists.cs
- NumberSubstitution.cs
- DesignTimeType.cs
- BindingSource.cs
- DirectionalLight.cs
- ByteStream.cs
- ListBindingHelper.cs
- IgnorePropertiesAttribute.cs
- NamedPipeConnectionPoolSettings.cs
- SoapFaultCodes.cs
- OdbcConnectionOpen.cs
- WorkflowApplicationCompletedException.cs
- WeakRefEnumerator.cs
- AnimationException.cs
- LogConverter.cs
- XmlTextAttribute.cs
- processwaithandle.cs
- Double.cs
- PreviewPrintController.cs
- File.cs
- WorkflowMarkupSerializerMapping.cs
- StoreContentChangedEventArgs.cs
- LinkedList.cs
- GC.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DrawingDrawingContext.cs
- ScrollableControl.cs
- RemotingServices.cs
- Misc.cs
- BindingCollectionElement.cs
- XPathSelfQuery.cs
- RotationValidation.cs
- GatewayIPAddressInformationCollection.cs
- ProfileGroupSettings.cs
- MessagePartSpecification.cs
- Application.cs
- Activity.cs
- DynamicControl.cs
- LingerOption.cs
- PropertyNames.cs
- DrawItemEvent.cs
- SmiGettersStream.cs
- UserControl.cs
- ParseHttpDate.cs
- StyleTypedPropertyAttribute.cs
- SystemFonts.cs
- Double.cs
- WindowsSspiNegotiation.cs
- CngKey.cs
- UserControl.cs
- DbBuffer.cs
- UshortList2.cs
- RequestCachePolicy.cs
- CommonProperties.cs
- RouteValueExpressionBuilder.cs
- contentDescriptor.cs
- CodeGeneratorAttribute.cs
- ContentPlaceHolder.cs
- CatalogPart.cs
- ISCIIEncoding.cs
- NodeFunctions.cs
- DeferrableContent.cs
- AlternateView.cs
- StringArrayConverter.cs
- SoapMessage.cs
- EncoderExceptionFallback.cs
- xamlnodes.cs
- ScriptComponentDescriptor.cs
- BaseResourcesBuildProvider.cs
- ProcessModelInfo.cs
- RootAction.cs
- DesignerImageAdapter.cs
- _NegoState.cs
- FunctionMappingTranslator.cs
- XmlCharacterData.cs
- XmlSignatureManifest.cs
- RC2.cs
- LabelDesigner.cs
- TraceProvider.cs
- OutOfMemoryException.cs
- GlyphCollection.cs
- SqlProviderUtilities.cs
- SerialPinChanges.cs
- ProfileSection.cs
- XPathConvert.cs
- Subtract.cs
- SmiRequestExecutor.cs
- EpmSyndicationContentDeSerializer.cs
- UriTemplateLiteralPathSegment.cs
- Stack.cs
- XmlMapping.cs
- RadioButtonRenderer.cs
- HtmlFormWrapper.cs
- UIElementHelper.cs
- CodeSnippetCompileUnit.cs
- ResourcePool.cs
- ExpressionEditorAttribute.cs
- TextTreeTextNode.cs
- SettingsPropertyValueCollection.cs