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 / CodeIterationStatement.cs / 1 / CodeIterationStatement.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;
///
///
/// Represents a simple for loop.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeIterationStatement : CodeStatement {
private CodeStatement initStatement;
private CodeExpression testExpression;
private CodeStatement incrementStatement;
private CodeStatementCollection statements = new CodeStatementCollection();
///
///
/// Initializes a new instance of .
///
///
public CodeIterationStatement() {
}
///
///
/// Initializes a new instance of .
///
///
public CodeIterationStatement(CodeStatement initStatement, CodeExpression testExpression, CodeStatement incrementStatement, params CodeStatement[] statements) {
InitStatement = initStatement;
TestExpression = testExpression;
IncrementStatement = incrementStatement;
Statements.AddRange(statements);
}
///
///
/// Gets or sets
/// the loop initialization statement.
///
///
public CodeStatement InitStatement {
get {
return initStatement;
}
set {
initStatement = value;
}
}
///
///
/// Gets or sets
/// the expression to test for.
///
///
public CodeExpression TestExpression {
get {
return testExpression;
}
set {
testExpression = value;
}
}
///
///
/// Gets or sets
/// the per loop cycle increment statement.
///
///
public CodeStatement IncrementStatement {
get {
return incrementStatement;
}
set {
incrementStatement = value;
}
}
///
///
/// Gets or sets
/// the statements to be executed within the loop.
///
///
public CodeStatementCollection Statements {
get {
return statements;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
///
///
/// Represents a simple for loop.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeIterationStatement : CodeStatement {
private CodeStatement initStatement;
private CodeExpression testExpression;
private CodeStatement incrementStatement;
private CodeStatementCollection statements = new CodeStatementCollection();
///
///
/// Initializes a new instance of .
///
///
public CodeIterationStatement() {
}
///
///
/// Initializes a new instance of .
///
///
public CodeIterationStatement(CodeStatement initStatement, CodeExpression testExpression, CodeStatement incrementStatement, params CodeStatement[] statements) {
InitStatement = initStatement;
TestExpression = testExpression;
IncrementStatement = incrementStatement;
Statements.AddRange(statements);
}
///
///
/// Gets or sets
/// the loop initialization statement.
///
///
public CodeStatement InitStatement {
get {
return initStatement;
}
set {
initStatement = value;
}
}
///
///
/// Gets or sets
/// the expression to test for.
///
///
public CodeExpression TestExpression {
get {
return testExpression;
}
set {
testExpression = value;
}
}
///
///
/// Gets or sets
/// the per loop cycle increment statement.
///
///
public CodeStatement IncrementStatement {
get {
return incrementStatement;
}
set {
incrementStatement = value;
}
}
///
///
/// Gets or sets
/// the statements to be executed within the loop.
///
///
public CodeStatementCollection Statements {
get {
return statements;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PluralizationServiceUtil.cs
- ActivityPropertyReference.cs
- InstanceData.cs
- versioninfo.cs
- DropDownList.cs
- EntityViewContainer.cs
- ReceiveCompletedEventArgs.cs
- CustomAssemblyResolver.cs
- ElementMarkupObject.cs
- _LoggingObject.cs
- ComponentSerializationService.cs
- StandardToolWindows.cs
- SwitchExpression.cs
- HyperLinkStyle.cs
- SortedList.cs
- UnconditionalPolicy.cs
- Helper.cs
- SerializationHelper.cs
- StylusLogic.cs
- CryptoKeySecurity.cs
- XsdDateTime.cs
- DecimalKeyFrameCollection.cs
- HwndHostAutomationPeer.cs
- SessionEndedEventArgs.cs
- State.cs
- PropertyReference.cs
- WebPartMovingEventArgs.cs
- MarkupCompilePass1.cs
- SecureConversationServiceElement.cs
- DataServiceExpressionVisitor.cs
- DoubleCollection.cs
- MetadataUtil.cs
- XmlSchemaInfo.cs
- InvokeHandlers.cs
- CollectionTraceRecord.cs
- ExpressionVisitorHelpers.cs
- WizardPanelChangingEventArgs.cs
- HeaderLabel.cs
- MenuRendererClassic.cs
- BaseAppDomainProtocolHandler.cs
- ComponentSerializationService.cs
- ItemsChangedEventArgs.cs
- ReadingWritingEntityEventArgs.cs
- IriParsingElement.cs
- MiniLockedBorderGlyph.cs
- KeyValuePairs.cs
- FixedPage.cs
- DefaultTextStoreTextComposition.cs
- DataGridViewCellValidatingEventArgs.cs
- DbInsertCommandTree.cs
- LineProperties.cs
- AdvancedBindingEditor.cs
- X509RawDataKeyIdentifierClause.cs
- LOSFormatter.cs
- TreeNodeMouseHoverEvent.cs
- XmlReflectionMember.cs
- Parameter.cs
- ValidationHelpers.cs
- ClientConfigPaths.cs
- DataGridViewColumnCollectionDialog.cs
- MergeLocalizationDirectives.cs
- TraceListeners.cs
- CompilerCollection.cs
- LocalizationComments.cs
- ListView.cs
- ListViewUpdatedEventArgs.cs
- LinkLabel.cs
- QueryRewriter.cs
- DataGridViewRowEventArgs.cs
- AnimationClock.cs
- PageThemeParser.cs
- NamespaceCollection.cs
- StreamResourceInfo.cs
- FastEncoder.cs
- ContentElement.cs
- SqlMultiplexer.cs
- BulletDecorator.cs
- SQLMoneyStorage.cs
- baseshape.cs
- DataControlFieldCollection.cs
- KeyTimeConverter.cs
- ObjectQuery_EntitySqlExtensions.cs
- CatalogZone.cs
- PeerCollaboration.cs
- PostBackOptions.cs
- Image.cs
- BitmapFrame.cs
- InputDevice.cs
- GenericIdentity.cs
- DiscoveryVersion.cs
- SoapAttributeAttribute.cs
- DrawingCollection.cs
- SqlDataSourceStatusEventArgs.cs
- TreeViewDataItemAutomationPeer.cs
- MaskedTextProvider.cs
- UnauthorizedWebPart.cs
- HealthMonitoringSectionHelper.cs
- AnnotationAuthorChangedEventArgs.cs
- VBCodeProvider.cs
- DrawingState.cs