mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
24 lines
707 B
C#
24 lines
707 B
C#
using System;
|
|
using System.Reflection;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace CefSharp.Internals
|
|
{
|
|
[DataContract]
|
|
public class JavascriptMethodDescription : JavascriptMemberDescription
|
|
{
|
|
// We cache the reflected delegate to improve performance a bit.
|
|
|
|
/// <summary>
|
|
/// Gets or sets a delegate which is used to invoke the method if the member is a method.
|
|
/// </summary>
|
|
public Func<object, object[], object> Function { get; set; }
|
|
|
|
public void Analyse(MethodInfo method)
|
|
{
|
|
ManagedName = method.Name;
|
|
JavascriptName = LowercaseFirst(method.Name);
|
|
Function = method.Invoke;
|
|
}
|
|
}
|
|
} |