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
- XmlDictionary.cs
- CodeNamespaceImportCollection.cs
- SelectorAutomationPeer.cs
- MSAAWinEventWrap.cs
- HttpListenerPrefixCollection.cs
- XmlUtilWriter.cs
- ControlUtil.cs
- NavigationPropertyEmitter.cs
- Transactions.cs
- StartUpEventArgs.cs
- PeerValidationBehavior.cs
- SafeSecurityHandles.cs
- MediaContextNotificationWindow.cs
- SimpleWebHandlerParser.cs
- HostSecurityManager.cs
- GenericUriParser.cs
- CornerRadius.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ListControlBoundActionList.cs
- RawStylusInputCustomData.cs
- SqlCacheDependencyDatabase.cs
- IDReferencePropertyAttribute.cs
- PinnedBufferMemoryStream.cs
- StringSource.cs
- DataGridParentRows.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HuffModule.cs
- SafePointer.cs
- _ServiceNameStore.cs
- TimeoutConverter.cs
- BooleanConverter.cs
- SecurityKeyIdentifierClause.cs
- PassportAuthenticationModule.cs
- ReadOnlyDataSource.cs
- AnimationClock.cs
- LabelAutomationPeer.cs
- CancellationHandlerDesigner.cs
- RuntimeEnvironment.cs
- HtmlInputSubmit.cs
- WebRequestModuleElement.cs
- CreateParams.cs
- _ProxyChain.cs
- InternalsVisibleToAttribute.cs
- TimeSpanConverter.cs
- SynchronizationLockException.cs
- securestring.cs
- GACIdentityPermission.cs
- GlobalDataBindingHandler.cs
- ColorInterpolationModeValidation.cs
- ImageKeyConverter.cs
- BordersPage.cs
- HybridDictionary.cs
- SettingsPropertyValue.cs
- TextBreakpoint.cs
- SerializationHelper.cs
- HttpHandler.cs
- ZipQueryOperator.cs
- SafeArrayTypeMismatchException.cs
- ChangeToolStripParentVerb.cs
- GroupQuery.cs
- Transform3D.cs
- StringWriter.cs
- CollectionView.cs
- HostingMessageProperty.cs
- XmlDeclaration.cs
- XPathConvert.cs
- wpf-etw.cs
- CngAlgorithm.cs
- QilLiteral.cs
- BoolExpr.cs
- Win32PrintDialog.cs
- EventHandlerService.cs
- TreeBuilderXamlTranslator.cs
- Parameter.cs
- XmlSchemaValidator.cs
- DataGridColumn.cs
- BooleanSwitch.cs
- FloaterBaseParagraph.cs
- PropertyDescriptor.cs
- MultipartContentParser.cs
- ProtocolElementCollection.cs
- altserialization.cs
- FrugalList.cs
- DataSourceDescriptorCollection.cs
- VBCodeProvider.cs
- HttpRawResponse.cs
- ImpersonationContext.cs
- ChannelManager.cs
- ScrollProperties.cs
- GraphicsContainer.cs
- HtmlListAdapter.cs
- Vector3DConverter.cs
- PropertyGridView.cs
- AdministrationHelpers.cs
- StorageFunctionMapping.cs
- Socket.cs
- Solver.cs
- OpenCollectionAsyncResult.cs
- InstanceData.cs
- ListControl.cs