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
27 lines (23 loc) · 901 Bytes
/
Copy pathStringFunction.cs
File metadata and controls
27 lines (23 loc) · 901 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
// StringFunction.cs
// Script#/Libraries/jQuery/Core
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
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>
[ScriptIgnoreNamespace]
[ScriptImport]
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>
[ScriptIgnoreNamespace]
[ScriptImport]
public delegate string StringReplaceFunction(int index, string currentValue);
}