Skip to content

Commit

Permalink
Type to return any when object on CSharp
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Almeida committed Aug 8, 2023
1 parent 60ff96e commit 143e2fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Onbox.TypeSharp/Services/TypeNamingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ public string GetPropertyName(PropertyInfo propInfo, Type type)

public string GetPropertyTypeName(Type type)
{
if (type == typeof(object))
{
return "any";
}
if (this.typeUtils.IsUnion(type))
{
System.Diagnostics.Debug.WriteLine(type.FullName);
}

if (this.typeUtils.IsString(type))
{
return "string";
Expand Down

0 comments on commit 143e2fe

Please sign in to comment.