using System; using System.Runtime.Serialization; namespace CefSharp.Internals { [DataContract] public class JavaScriptMemberDescription { /// /// Identifies the for BrowserProcess to RenderProcess communication /// [DataMember] public long Id { get; set; } /// /// Gets or sets the name of the managed property. /// [DataMember] public string ManagedName { get; set; } /// /// Gets or sets the name of the property in the JavaScript runtime. /// [DataMember] public string JavascriptName { get; set; } // The following members are used to cache reflection code to improve performance /// /// Gets or sets a delegate which is used to set the property / field value in the managed object. /// public Action SetValue { get; set; } /// /// Gets or sets a delegate which is used to get the property / field value from the managed object. /// public Func GetValue { get; set; } /// /// Gets or sets a delegate which is used to invoke the method if the member is a method. /// public Delegate Function { get; set; } } }