本文整理汇总了C#中Sequence.ToList方法的典型用法代码示例。如果您正苦于以下问题:C# Sequence.ToList方法的具体用法?C# Sequence.ToList怎么用?C# Sequence.ToList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sequence
的用法示例。
在下文中一共展示了Sequence.ToList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FetchStatement
public FetchStatement(CursorPositionToken cursorPosition, CursorName cursorName, Sequence<VariableName> destinationVariables) {
Debug.Assert(cursorPosition != null);
Debug.Assert(cursorName != null);
this.cursorPosition = cursorPosition;
this.cursorName = cursorName;
this.destinationVariables = destinationVariables.ToList();
}
示例2: TableForeignKeyConstraint
public TableForeignKeyConstraint(ConstraintName constraintName, Sequence<ColumnName> columnNames, Qualified<SchemaName, TableName> refTableName, Optional<Sequence<ColumnName>> refColumnNames, Sequence<ForeignKeyAction> keyActions): base(constraintName) {
Debug.Assert(refTableName != null);
this.columnNames = columnNames.ToList();
this.refTableName = refTableName;
this.refColumnNames = refColumnNames.ToList();
this.keyActions = keyActions.ToList();
}
示例3: CreateColumnIndexStatement
public CreateColumnIndexStatement(Optional<UniqueToken> unique, ConstraintClusterToken clustered, IndexName indexName, Qualified<SchemaName, TableName> tableName, Sequence<IndexColumn> indexColumns, Sequence<ColumnName> columnNames, Predicate filter, IndexOptionGroup indexOptions)
: base(indexName, tableName, indexOptions) {
Debug.Assert(clustered != null);
this.unique = unique.HasValue();
this.clustered = clustered.Clustered;
this.indexColumns = indexColumns.ToList();
this.filter = filter;
includeColumnNames = columnNames.ToList();
}
示例4: SelectQuery
protected SelectQuery(bool? restriction, TopExpression top, Sequence<ColumnItem> columnItems, Optional<DestinationRowset> intoClause, Optional<Predicate> whereClause, ForClause forClause, RowsetCombineClause unionClause) {
this.top = top;
this.intoClause = intoClause;
this.forClause = forClause;
this.unionClause = unionClause;
this.columnItems = columnItems.ToList();
this.restriction = restriction;
this.whereClause = whereClause;
}
示例5: SequenceTestToList
public void SequenceTestToList()
{
Sequence<int> s = new Sequence<int>(5);
s.AddRange(new[] { 1, 2, 3 });
List<int> asList = s.ToList();
Assert.Equal(1, asList[0]);
Assert.Equal(2, asList[1]);
Assert.Equal(3, asList[2]);
}
示例6: UpdateStatement
public UpdateStatement(QueryOptions queryOptions, TopExpression topExpression, DestinationRowset destinationRowset, Sequence<UpdateItem> updateItems, OutputClause outputClause, Optional<FromClause> fromClause, Optional<Predicate> whereClause, QueryHint queryHint) {
Debug.Assert(destinationRowset != null);
this.queryOptions = queryOptions;
this.topExpression = topExpression;
this.destinationRowset = destinationRowset;
this.updateItems = updateItems.ToList();
this.outputClause = outputClause;
this.fromClause = fromClause;
this.whereClause = whereClause;
this.queryHint = queryHint;
}
示例7: MergeStatement
public MergeStatement(QueryOptions queryOptions, TopExpression topExpression, DestinationRowset destinationRowset, RowsetAlias destinationAlias, SourceRowset sourceRowset, Predicate predicate, Sequence<MergeWhenMatched> mergeWhenMatcheds, OutputClause outputClause, QueryHint queryHint) {
this.queryOptions = queryOptions;
this.topExpression = topExpression;
this.destinationRowset = destinationRowset;
this.destinationAlias = destinationAlias;
this.sourceRowset = sourceRowset;
this.predicate = predicate;
whenMatchedCollection = mergeWhenMatcheds.ToList();
this.outputClause = outputClause;
this.queryHint = queryHint;
}
示例8: OpenxmlExplicitSchema
public OpenxmlExplicitSchema(Sequence<OpenxmlColumn> columns) {
this.columns = columns.ToList();
}
示例9: ColumnForeignKeyConstraint
public ColumnForeignKeyConstraint(ConstraintName constraintName, Qualified<SchemaName, TableName> tableName, Optional<ColumnName> refColumnName, Sequence<ForeignKeyAction> keyActions): base(constraintName) {
Debug.Assert(tableName != null);
this.tableName = tableName;
this.refColumnName = refColumnName;
this.keyActions = keyActions.ToList();
}
示例10: QueryHint
public QueryHint(Sequence<QueryHintOption> options) {
this.options = options.ToList();
}
示例11: OutputClause
public OutputClause(Sequence<ColumnItem> columnItems, DestinationRowset destinationName, Optional<Sequence<ColumnName>> destinationColumnNames) {
this.destinationName = destinationName;
this.destinationColumnNames = destinationColumnNames.ToList();
this.columnItems = columnItems.ToList();
}
示例12: FromClause
public FromClause(Source source, Sequence<Join> join) {
Debug.Assert(source != null);
this.source = source;
joins = join.ToList();
}
示例13: FulltextMultipleFunction
public FulltextMultipleFunction(ReservedKeyword keyword, Sequence<Qualified<SqlName, ColumnName>> columns, Expression query, Literal language): base(keyword, query, language) {
Debug.Assert(columns != null);
this.columns = columns.ToList();
}
示例14: SourceParens
public SourceParens(Source inner, Sequence<Join> joins) {
Debug.Assert(inner != null);
this.inner = inner;
this.joins = joins.ToList();
}
示例15: UpdateModeForUpdate
public UpdateModeForUpdate(Sequence<ColumnName> columns) {
this.columns = columns.ToList();
}