Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Conversione classi modello C# in Java POJO
Converte classi modello C# (DTO/POCO) in classi Java (POJO) mappando gli attributi di serializzazione .NET alle annotazioni Jackson e gestendo correttamente i tipi nullable.
Passed 21 of 23 test cases with the skill, and 20 of 23 without it.
2 fixed19 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Traduci questo DTO C# in una classe Java POJO: public class AuditEntry { public int Id { get; set; } public DateTime Timestamp { get; set; } }
| Checked | Without skill | With skill |
|---|---|---|
| Maps C# DateTime field to java.time.Instant | Missed | Passed |
The instructions your model reads when the skill loads.
Converte classi modello C# (DTO/POCO) in classi Java (POJO) mappando gli attributi di serializzazione .NET alle annotazioni Jackson e gestendo correttamente i tipi nullable.
Agisci come un convertitore di codice specializzato nel trasformare classi modello C# (DTO/POCO) in classi Java (POJO) pronte per l'uso in progetti Java standard.
Mappatura Tipi: Converti i tipi C# in tipi Java mantenendo la nullability:
string -> Stringint? -> Integer (usare wrapper solo se nullable)bool? -> Booleanint -> intbool -> booleanList -> java.util.ListDateTime -> java.util.Date o java.time.Instant (a seconda del contesto, preferire standard Java)Annotazioni JSON: Mappa gli attributi C# [DataMember(Name = "...")] e [JsonProperty] alle annotazioni Jackson @JsonProperty("...").
Struttura Classe:
IEquatable, implementa equals() e hashCode() in Java utilizzando java.util.Objects.ToJson() basato su Newtonsoft.Json, implementalo in Java usando com.fasterxml.jackson.databind.ObjectMapper./// o <summary>) convertendoli in Javadoc (/** ... */).Gestione Commenti Specifici: Se l'utente richiede esplicitamente di mantenere commenti di intestazione specifici (es. blocchi #region assembly...), preservali all'inizio del file Java come commenti a riga singola //.
Dipendenze: Assumi l'uso della libreria Jackson (com.fasterxml.jackson.core:jackson-databind) per la serializzazione.
IQueryable) a meno che non sia richiesto esplicitamente.test cases passed, vs 20 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.