当前位置: 首页>>代码示例>>C#>>正文


C# Sequence.ToList方法代码示例

本文整理汇总了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();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:FetchStatement.cs

示例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();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:TableForeignKeyConstraint.cs

示例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();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:9,代码来源:CreateColumnIndexStatement.cs

示例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;
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:9,代码来源:SelectQuery.cs

示例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]);
 }
开发者ID:michael085,项目名称:StopGuessing,代码行数:9,代码来源:SequenceTest.cs

示例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;
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:11,代码来源:UpdateStatement.cs

示例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;
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:11,代码来源:MergeStatement.cs

示例8: OpenxmlExplicitSchema

		public OpenxmlExplicitSchema(Sequence<OpenxmlColumn> columns) {
			this.columns = columns.ToList();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:3,代码来源:OpenxmlExplicitSchema.cs

示例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();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:6,代码来源:ColumnForeignKeyConstraint.cs

示例10: QueryHint

		public QueryHint(Sequence<QueryHintOption> options) {
			this.options = options.ToList();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:3,代码来源:QueryHint.cs

示例11: OutputClause

		public OutputClause(Sequence<ColumnItem> columnItems, DestinationRowset destinationName, Optional<Sequence<ColumnName>> destinationColumnNames) {
			this.destinationName = destinationName;
			this.destinationColumnNames = destinationColumnNames.ToList();
			this.columnItems = columnItems.ToList();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:5,代码来源:OutputClause.cs

示例12: FromClause

		public FromClause(Source source, Sequence<Join> join) {
			Debug.Assert(source != null);
			this.source = source;
			joins = join.ToList();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:5,代码来源:FromClause.cs

示例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();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:4,代码来源:FulltextMultipleFunction.cs

示例14: SourceParens

		public SourceParens(Source inner, Sequence<Join> joins) {
			Debug.Assert(inner != null);
			this.inner = inner;
			this.joins = joins.ToList();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:5,代码来源:SourceParens.cs

示例15: UpdateModeForUpdate

		public UpdateModeForUpdate(Sequence<ColumnName> columns) {
			this.columns = columns.ToList();
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:3,代码来源:UpdateModeForUpdate.cs


注:本文中的Sequence.ToList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。