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. /// /// Gets or sets a delegate which is used to invoke the method if the member is a method. /// public Func Function { get; set; } public void Analyse(MethodInfo method) { ManagedName = method.Name; JavascriptName = LowercaseFirst(method.Name); Function = method.Invoke; } } }