❔ How i can convert a js function to c# - C#