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
- BoundField.cs
- TcpChannelListener.cs
- EventSchemaTraceListener.cs
- MouseCaptureWithinProperty.cs
- Point3DAnimationBase.cs
- FontEmbeddingManager.cs
- SQLSingle.cs
- Predicate.cs
- MailWebEventProvider.cs
- DependencyObjectProvider.cs
- EllipseGeometry.cs
- DataGridViewCellParsingEventArgs.cs
- DateTimeFormat.cs
- EventHandlerList.cs
- GridViewPageEventArgs.cs
- ToolTipService.cs
- Win32SafeHandles.cs
- _AutoWebProxyScriptEngine.cs
- Asn1IntegerConverter.cs
- UserNamePasswordValidator.cs
- Transform3DCollection.cs
- TableLayoutCellPaintEventArgs.cs
- MarkupExtensionParser.cs
- TextServicesLoader.cs
- Icon.cs
- PropertyCollection.cs
- GradientBrush.cs
- ObjectListCommandsPage.cs
- Error.cs
- ScrollPattern.cs
- GenericIdentity.cs
- UInt64Converter.cs
- TripleDESCryptoServiceProvider.cs
- Switch.cs
- CollectionViewGroupRoot.cs
- TrackingStringDictionary.cs
- ConstructorExpr.cs
- ReferenceConverter.cs
- AuthStoreRoleProvider.cs
- ListGeneralPage.cs
- ControlParameter.cs
- PropertyEmitter.cs
- BodyWriter.cs
- HttpListenerRequest.cs
- AppDomainAttributes.cs
- XsltConvert.cs
- DiscoveryInnerClientAdhocCD1.cs
- ArglessEventHandlerProxy.cs
- TcpServerChannel.cs
- SamlAttribute.cs
- EnumConverter.cs
- SubstitutionList.cs
- DataGridViewRowPrePaintEventArgs.cs
- BypassElementCollection.cs
- GroupBox.cs
- ProxyGenerator.cs
- LocalizedNameDescriptionPair.cs
- ConnectionStringSettings.cs
- TaskFormBase.cs
- FormViewInsertedEventArgs.cs
- hresults.cs
- ComboBoxAutomationPeer.cs
- DataDesignUtil.cs
- ToolStripDesignerAvailabilityAttribute.cs
- Regex.cs
- SimpleType.cs
- DataTemplate.cs
- TargetException.cs
- CryptoApi.cs
- DesignUtil.cs
- EntityContainerEmitter.cs
- ContentIterators.cs
- XmlNamespaceManager.cs
- CommonXSendMessage.cs
- WinFormsSpinner.cs
- CqlParserHelpers.cs
- ContentDisposition.cs
- SafeMemoryMappedFileHandle.cs
- Keyboard.cs
- Types.cs
- PropertyMappingExceptionEventArgs.cs
- ParagraphResult.cs
- Error.cs
- MetadataProperty.cs
- XPathMultyIterator.cs
- Rfc2898DeriveBytes.cs
- EntityViewGenerationAttribute.cs
- CertificateManager.cs
- QuadraticBezierSegment.cs
- AggregatePushdown.cs
- PrivilegedConfigurationManager.cs
- JavaScriptString.cs
- PropertyChangedEventManager.cs
- XhtmlConformanceSection.cs
- ImageCreator.cs
- DecimalConverter.cs
- SynthesizerStateChangedEventArgs.cs
- NameValueConfigurationCollection.cs
- ReachVisualSerializer.cs
- Panel.cs