Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataResolver.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ParseHttpDate.cs
- RangeValuePatternIdentifiers.cs
- CheckoutException.cs
- TypeRefElement.cs
- ClassValidator.cs
- WhileDesigner.xaml.cs
- KnownTypeAttribute.cs
- TypedElement.cs
- MSG.cs
- ButtonRenderer.cs
- ContentIterators.cs
- DesignTimeParseData.cs
- ConfigXmlCDataSection.cs
- VirtualizingStackPanel.cs
- WebPartChrome.cs
- BindingWorker.cs
- ConfigXmlText.cs
- RuleElement.cs
- EntitySetDataBindingList.cs
- GuidelineSet.cs
- VideoDrawing.cs
- Stack.cs
- File.cs
- DragDrop.cs
- SiteMapHierarchicalDataSourceView.cs
- OleServicesContext.cs
- EventHandlerList.cs
- DesignerForm.cs
- ExecutionContext.cs
- System.Data_BID.cs
- CalendarDay.cs
- BCryptNative.cs
- Pair.cs
- FragmentNavigationEventArgs.cs
- InnerItemCollectionView.cs
- UserControl.cs
- BatchParser.cs
- CodeIdentifiers.cs
- WebPartMenuStyle.cs
- MetabaseServerConfig.cs
- InfoCardAsymmetricCrypto.cs
- CodeDOMProvider.cs
- _ShellExpression.cs
- WorkflowInstanceQuery.cs
- DataServiceQueryProvider.cs
- XmlFormatExtensionPointAttribute.cs
- SecurityAttributeGenerationHelper.cs
- HotSpotCollection.cs
- MetadataPropertyAttribute.cs
- ContentAlignmentEditor.cs
- DnsEndPoint.cs
- EventTrigger.cs
- HttpConfigurationContext.cs
- Light.cs
- XmlSerializationGeneratedCode.cs
- ConfigurationElement.cs
- RsaSecurityToken.cs
- DocumentDesigner.cs
- KnownAssembliesSet.cs
- ViewPort3D.cs
- WindowsPen.cs
- DbInsertCommandTree.cs
- DataTableReader.cs
- RijndaelManaged.cs
- ClickablePoint.cs
- Queue.cs
- ProcessProtocolHandler.cs
- MarshalByValueComponent.cs
- AuthenticationSection.cs
- LookupBindingPropertiesAttribute.cs
- DBConcurrencyException.cs
- TextBoxRenderer.cs
- StringSource.cs
- CodeBinaryOperatorExpression.cs
- HwndSource.cs
- ToolStripRenderEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- SupportingTokenAuthenticatorSpecification.cs
- SimpleTypeResolver.cs
- StorageTypeMapping.cs
- CompositeFontInfo.cs
- ScriptBehaviorDescriptor.cs
- UseAttributeSetsAction.cs
- WebUtil.cs
- IOException.cs
- BooleanFunctions.cs
- DocumentCollection.cs
- WizardPanel.cs
- LinkedList.cs
- BitmapEditor.cs
- EmbeddedMailObjectsCollection.cs
- DesignColumnCollection.cs
- EdmScalarPropertyAttribute.cs
- CodeTypeParameterCollection.cs
- XpsFilter.cs
- DynamicResourceExtensionConverter.cs
- HTMLTagNameToTypeMapper.cs
- FormsAuthenticationModule.cs