Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Mar 29 00:07
    ChrML opened #4112
  • Mar 25 09:51
    ChrML edited #4111
  • Mar 25 09:41
    ChrML opened #4111
  • Mar 16 23:16
    kosmab opened #4110
  • Mar 02 04:29
    colderlord opened #4109
  • Feb 27 14:09
    AndreyZM commented #3732
  • Feb 23 00:28
    brandonros commented #4068
  • Feb 19 04:09
    fabriciomurta milestoned #4069
  • Feb 19 04:09
    fabriciomurta demilestoned #4069
  • Feb 19 04:09
    fabriciomurta commented #4069
  • Feb 19 04:07

    fabriciomurta on dev

    Fix bug with "hasOwnProperty" d… Refreshes output files with Bri… Adds test case for issue (pull … and 1 more (compare)

  • Feb 17 16:49
    TriEdgeAI commented #4108
  • Feb 17 16:44
    TriEdgeAI commented #4108
  • Feb 17 16:42
    TriEdgeAI edited #4108
  • Feb 17 16:41
    TriEdgeAI edited #4108
  • Feb 17 16:41
    TriEdgeAI opened #4108
  • Feb 12 19:26
    geoffreymcgill commented #4107
  • Feb 12 06:51
    slavikn84 commented #4107
  • Feb 12 04:29
    geoffreymcgill commented #4107
  • Feb 10 18:47
    claassistantio commented #4107
Anthony G. Rivera Cosme
@arivera12
I already have worked with those methods and properties for a while
and manipulated dom and everything
Geoffrey McGill
@geoffreymcgill
C#/.NET Reflection is supported with C#/.NET types.
https://deck.net/d433a44a96993236ea7fe639197646bb
public class App
{
    public static void Main()
    {
        var person = new Person { Name = "Frank" };

        foreach (var property in person.GetType().GetProperties())
        {
            Console.WriteLine($"{property.Name} {property.PropertyType.Name}");
        }
    }
}

public class Person
{
    public string Name { get; set; }
}
Anthony G. Rivera Cosme
@arivera12
how to get this
image.png
I saw it works with custom types already tested them
but reflection doesn't seems to work with Bridge.Html5
Geoffrey McGill
@geoffreymcgill
Reflection isn't going to work with Bridge.Html5. I don't think it's possible.
Anthony G. Rivera Cosme
@arivera12
its seems totally impossible to do. I cant read the classes definitions that are related to the browser/window/dom...
Geoffrey McGill
@geoffreymcgill
Correct
Anthony G. Rivera Cosme
@arivera12
is there any other way
to do this?
any work around
not reflection based ofc
maybe I could try another project type not bridge.net and install the package Bridge.Html5 and try is reflection works?
what u think about?
Geoffrey McGill
@geoffreymcgill
Maybe this could work for you:
https://deck.net/8a48fbab0ea83c0cf65a6db5507aed88/three
public class App
{
    public static void Main()
    {
        var anchor = new HTMLAnchorElement();
        anchor.href = "https://bridge.net";
        anchor.text = "Bridge.NET";
        anchor.id = "link1";

        document.body.appendChild(anchor);

        var attrs = anchor.attributes;

        for(uint i = 0; i < attrs.length; i++) {
            Console.WriteLine(attrs[i].name + ": " + attrs[i].value);
        }
    }
}
Anthony G. Rivera Cosme
@arivera12
nope it doesnt work
Anthony G. Rivera Cosme
@arivera12
I tried using in in a external project but it doesn't work either. I think I will be downloading the source code instead and play with it.
Geoffrey McGill
@geoffreymcgill
ok, sounds good.
Anthony G. Rivera Cosme
@arivera12
how read a d.ts and convert it to c# file?
I see retyped seems to do this but I can't find any resource to do this. Anyone has a link for this?
Geoffrey McGill
@geoffreymcgill
Several custom applications and processes within retyped.com does the conversion, but all those projects are private and not open-source.
Anthony G. Rivera Cosme
@arivera12
retyped and bridge where done without using any tool?
Geoffrey McGill
@geoffreymcgill
I'm not sure what you mean?
Anthony G. Rivera Cosme
@arivera12
I mean the same thing when you reefer to Several custom applications and processes
so there is no application that does this for you?
read a d.ts and generate c# code?
Geoffrey McGill
@geoffreymcgill
Retyped is built with software that we wrote
Anthony G. Rivera Cosme
@arivera12
is there a retyped compiler or application to read some d.ts to c#?
Geoffrey McGill
@geoffreymcgill
Retyped is not publicly available.
Anthony G. Rivera Cosme
@arivera12
:'(
jahidblackrose
@jahidblackrose
hello every one
i have to develop biometric fingerprint scan in web application
but didnt get any soluation like js script to solve that issue
is any soluation without using API
?/
theolivenbaum
@theolivenbaum
hey everyone, hope you're all doing well in the middle of this crisis - just wanted to share something we built last week, that uses Bridge: https://covid.curiosity.ai/
based on a components lib we're building: https://tesserae.curiosity.ai , which we'll soon open-source
Geoffrey McGill
@geoffreymcgill
@theolivenbaum Looks like a very nice job. Components looks great. Nice work.
Geoffrey McGill
@geoffreymcgill
@theolivenbaum Are you building this covid project for a client, or just something you're taking on your own?
theolivenbaum
@theolivenbaum
@geoffreymcgill no client, just to help the people working on this kaggle challenge: https://www.kaggle.com/allen-institute-for-ai/CORD-19-research-challenge/
it uses our stack for the back-end, the source-code for the rest is here: https://github.com/curiosity-ai/covid-19
Guido van Hilst
@guidovanhilst
@theolivenbaum : about tesserae : Is this a C# UI lib build with bridge.Net ?
theolivenbaum
@theolivenbaum
@guidovanhilst exactly - you can see a (WIP - incomplete) demo page with the components so far on it here: https://tesserae.curiosity.ai - it's always up-to-date with the repository / nuget package
Guido van Hilst
@guidovanhilst
@theolivenbaum : is looking good! I have tried to make a UI lib. with Bridge.Net based on warpping dom DOM nodes
I am now planning on making a new project, using Bridge.Net SignalR ThreeJS
Maybe looking for a good UI C#
Guido van Hilst
@guidovanhilst

Is there anyone here who can comment on Blazer versus Bridge.net?
I think both have more or less the same objective: Building webapps with C # where passing of "DataStructures" via typed Service interfaces are known on both sides ,?

I read a little bit about the JavaScriptInterOP and it seems that we have to write a lot of wrapper code to use it?

With retyped.com and Brid.Net you can create good web apps in C # and the interop with JS has also been made easier by retyped.

Why don't I hear so much news about this technolory (retyped.com and Brid.Net)

While Blazer gets full attention. Of course also because of the WebAsm variant, running .Net Core on the Client

Guido van Hilst
@guidovanhilst

I was thinking .. if Blazor is promising technique because the .core is running in the browser. The interop with jS is still clumsy. Bridge.Net and Retyped can properly generate JS interop from / to TypeScipt / C #

I think I use both the Rosyn compiler, but I don't know if that matters.

Maybe retypd can generate the interop with JS for Blazor?