forked from nikhilk/scriptsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringFunction.cs
More file actions
30 lines (26 loc) · 1012 Bytes
/
Copy pathStringFunction.cs
File metadata and controls
30 lines (26 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// StringFunction.cs
// Script#/Libraries/jQuery/jQueryCore
// Copyright (c) Nikhil Kothari.
// Copyright (c) Microsoft Corporation.
// This source code is subject to terms and conditions of the Microsoft
// Public License. A copy of the license can be found in License.txt.
//
using System;
using System.Runtime.CompilerServices;
namespace jQueryApi {
/// <summary>
/// A callback that returns a value for the element at the specified index.
/// </summary>
/// <param name="index">The index of the element in the set.</param>
[IgnoreNamespace]
[Imported]
public delegate string StringFunction(int index);
/// <summary>
/// A callback that returns a value for the element at the specified index.
/// </summary>
/// <param name="index">The index of the element in the set.</param>
/// <param name="currentValue">The current value.</param>
[IgnoreNamespace]
[Imported]
public delegate string StringReplaceFunction(int index, string currentValue);
}