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
- AdjustableArrowCap.cs
- HandlerFactoryCache.cs
- RadioButtonBaseAdapter.cs
- ChtmlTextWriter.cs
- DBBindings.cs
- Convert.cs
- GeometryGroup.cs
- InstanceNameConverter.cs
- GestureRecognitionResult.cs
- Trigger.cs
- ImageSourceValueSerializer.cs
- ConstructorArgumentAttribute.cs
- MenuCommand.cs
- ExpressionQuoter.cs
- LazyTextWriterCreator.cs
- TemplateControlCodeDomTreeGenerator.cs
- DrawingCollection.cs
- ThemeDictionaryExtension.cs
- IntSumAggregationOperator.cs
- PropertyInfoSet.cs
- CssStyleCollection.cs
- FilePrompt.cs
- SynchronousChannelMergeEnumerator.cs
- ClientSettingsSection.cs
- EmbeddedMailObjectsCollection.cs
- GridViewSelectEventArgs.cs
- ShaderEffect.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- MultidimensionalArrayItemReference.cs
- Point.cs
- ImageListDesigner.cs
- ObjectViewListener.cs
- GiveFeedbackEventArgs.cs
- UserUseLicenseDictionaryLoader.cs
- Rfc2898DeriveBytes.cs
- ModuleElement.cs
- Delay.cs
- Literal.cs
- SqlDataReader.cs
- Char.cs
- RegistrySecurity.cs
- RightsManagementInformation.cs
- embossbitmapeffect.cs
- Directory.cs
- RangeContentEnumerator.cs
- PropertyTabChangedEvent.cs
- SmiSettersStream.cs
- MdiWindowListItemConverter.cs
- LineBreakRecord.cs
- RotateTransform.cs
- TextAutomationPeer.cs
- MarginsConverter.cs
- DataStreams.cs
- RelationshipFixer.cs
- WebPartZoneCollection.cs
- Stack.cs
- UIntPtr.cs
- SrgsToken.cs
- XamlTypeMapper.cs
- SerializationEventsCache.cs
- fixedPageContentExtractor.cs
- LinkDescriptor.cs
- IdnElement.cs
- ToolboxBitmapAttribute.cs
- RightsManagementEncryptionTransform.cs
- FontStyle.cs
- HotSpotCollection.cs
- ListBoxDesigner.cs
- ColumnCollection.cs
- RectIndependentAnimationStorage.cs
- OleDbFactory.cs
- CompareInfo.cs
- _IPv6Address.cs
- ComponentChangedEvent.cs
- ISFTagAndGuidCache.cs
- PointConverter.cs
- MetadataItem_Static.cs
- SafeTimerHandle.cs
- CounterSampleCalculator.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- BitVec.cs
- ContainerFilterService.cs
- KeyGestureValueSerializer.cs
- GridViewColumnHeader.cs
- XmlSchemaInfo.cs
- EntryWrittenEventArgs.cs
- WebPartDisplayModeEventArgs.cs
- DrawToolTipEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- DoubleCollectionValueSerializer.cs
- AspNetRouteServiceHttpHandler.cs
- RichTextBoxConstants.cs
- MessageDecoder.cs
- Table.cs
- CallbackDebugElement.cs
- NativeMethods.cs
- ConsoleCancelEventArgs.cs
- ProjectionPlanCompiler.cs
- RowVisual.cs
- RadioButtonPopupAdapter.cs