17 lines
1.1 KiB
HTML
17 lines
1.1 KiB
HTML
<html><head><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
|
|
<param name="Keyword" value="AsEnumerable">
|
|
</object><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><title></title><link rel="StyleSheet" href="../../../default.css"></head>
|
|
<body>
|
|
<H1>Метод AsEnumerable</H1><h2>Описание методов</h2><p>Методы приведены для последовательности <code><b>sequence of</b> T</code>.</p><table>
|
|
<tr><td>
|
|
<code><b>function </b>AsEnumerable(): <b>sequence of</b> T;</code>
|
|
<br> Возвращает входные данные, приведенные к типу IEnumerable<T>.
|
|
</td></tr>
|
|
</table>
|
|
<h2>Пример </h2><blockquote><code><strong>function</strong> Print<T>(Self:
|
|
<strong>array of</strong> T): <strong>array of</strong> T; extensionmethod;<br>
|
|
<strong>begin</strong><br> Self.AsEnumerable.Print; <br> Result
|
|
:= Self;<br><strong>end</strong>;<br><br><strong>begin</strong><br>
|
|
Arr(1,2,3).Print<br><strong>end</strong>.</code></blockquote>
|
|
</body>
|