mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System.Runtime.Serialization;
|
|
|
|
namespace CefSharp.Internals
|
|
{
|
|
[KnownType(typeof(JavascriptMethodDescription))]
|
|
[KnownType(typeof(JavascriptPropertyDescription))]
|
|
[DataContract]
|
|
public abstract class JavascriptMemberDescription
|
|
{
|
|
/// <summary>
|
|
/// Identifies the <see cref="JavascriptMemberDescription" /> for BrowserProcess to RenderProcess communication
|
|
/// </summary>
|
|
[DataMember]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the managed property.
|
|
/// </summary>
|
|
[DataMember]
|
|
public string ManagedName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the property in the JavaScript runtime.
|
|
/// </summary>
|
|
[DataMember]
|
|
public string JavascriptName { get; set; }
|
|
|
|
public static string LowercaseFirst(string str)
|
|
{
|
|
if (string.IsNullOrEmpty(str))
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
return char.ToLower(str[0]) + str.Substring(1);
|
|
}
|
|
}
|
|
} |