Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WinInetCache.cs
- Positioning.cs
- UpWmlMobileTextWriter.cs
- DesignerImageAdapter.cs
- figurelengthconverter.cs
- PersonalizationStateQuery.cs
- HtmlDocument.cs
- AdornerDecorator.cs
- DataSourceDesigner.cs
- SoapUnknownHeader.cs
- SafeRightsManagementEnvironmentHandle.cs
- OutputCacheProfileCollection.cs
- XPathNodePointer.cs
- PropertyChangeTracker.cs
- HttpApplication.cs
- SQLInt64Storage.cs
- ISFClipboardData.cs
- ValueQuery.cs
- Compiler.cs
- KnownColorTable.cs
- GetWinFXPath.cs
- ScrollItemProviderWrapper.cs
- BackStopAuthenticationModule.cs
- OdbcStatementHandle.cs
- EventDescriptor.cs
- EntityClientCacheKey.cs
- Registry.cs
- DataControlPagerLinkButton.cs
- TempFiles.cs
- querybuilder.cs
- PolicyVersionConverter.cs
- XmlC14NWriter.cs
- SafeNativeMethods.cs
- XamlWrapperReaders.cs
- MemoryResponseElement.cs
- BindingBase.cs
- SizeConverter.cs
- CapabilitiesUse.cs
- ReflectPropertyDescriptor.cs
- SetStateEventArgs.cs
- NativeWindow.cs
- DefaultEvaluationContext.cs
- CellTreeNode.cs
- MetadataFile.cs
- SqlDataRecord.cs
- IDReferencePropertyAttribute.cs
- PolygonHotSpot.cs
- BrowserDefinitionCollection.cs
- ConfigurationSectionGroup.cs
- Atom10ItemFormatter.cs
- Method.cs
- InternalRelationshipCollection.cs
- MethodSet.cs
- EventSinkHelperWriter.cs
- PriorityBinding.cs
- Bold.cs
- EpmSourcePathSegment.cs
- CatalogPartCollection.cs
- SendSecurityHeaderElementContainer.cs
- Rule.cs
- NamespaceQuery.cs
- ResourceAttributes.cs
- SerialPinChanges.cs
- MDIClient.cs
- DataServiceQueryProvider.cs
- ElementsClipboardData.cs
- TypeLibConverter.cs
- TextServicesLoader.cs
- DSACryptoServiceProvider.cs
- ValueTypeFixupInfo.cs
- Page.cs
- WebCategoryAttribute.cs
- EntityTypeBase.cs
- DbCommandDefinition.cs
- NotifyParentPropertyAttribute.cs
- XmlArrayItemAttributes.cs
- DrawingContext.cs
- SelectedGridItemChangedEvent.cs
- SafeCryptHandles.cs
- CompositeControl.cs
- EnumType.cs
- SchemaImporterExtensionElement.cs
- COMException.cs
- CodeComment.cs
- ZoneIdentityPermission.cs
- GridItemPatternIdentifiers.cs
- EdmError.cs
- XmlSchemaComplexContent.cs
- UDPClient.cs
- DBBindings.cs
- ParameterRetriever.cs
- ThaiBuddhistCalendar.cs
- ContractReference.cs
- RegistrationContext.cs
- SoapSchemaMember.cs
- SignatureResourcePool.cs
- CodeSubDirectory.cs
- DisplayNameAttribute.cs
- SourceLineInfo.cs
- DataGridViewComboBoxColumn.cs