Exemple #1
0
        protected string ResolveType(string type)
        {
            var ea = new ResolveTypeNameEventArgs(type);

            ResolveTypeName?.Invoke(this, ea);
            return(ea.Result);
        }
Exemple #2
0
 public void HandleResolveEvent(object sender, ResolveTypeNameEventArgs e)
 {
     if (TryResolve(e.Type, out string type))
     {
         e.Result = type;
     }
 }
 private void CodeGen_ResolveTypeName(object sender, ResolveTypeNameEventArgs e)
 {
     if (e.Type.StartsWith("cef_") || e.Type.StartsWith("_cef_"))
     {
         e.Result = "CefNet.CApi." + e.Type;
     }
     if (e.Type.StartsWith("Cef"))
     {
         e.Result = "CefNet." + e.Type;
     }
 }
 protected string ResolveCefType(string type)
 {
     if (type.EndsWith('*'))
     {
         return(ResolveCefType(type.Remove(type.Length - 1)) + "*");
     }
     else
     {
         var ea = new ResolveTypeNameEventArgs(type);
         ResolveCefTypeDef?.Invoke(this, ea);
         return(ea.Result);
     }
 }