mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-12 00:58:39 +00:00
Implement sizeof completely (#119)
This commit is contained in:
@@ -33,6 +33,20 @@ type ConcreteType<'typeGeneric> =
|
||||
_Generics : ImmutableArray<'typeGeneric>
|
||||
}
|
||||
|
||||
override this.ToString () : string =
|
||||
let basic = $"%s{this.Assembly.Name}.%s{this.Namespace}.%s{this.Name}"
|
||||
|
||||
let generics =
|
||||
if this.Generics.IsEmpty then
|
||||
""
|
||||
else
|
||||
this.Generics
|
||||
|> Seq.map string
|
||||
|> String.concat ", "
|
||||
|> fun x -> "<" + x + ">"
|
||||
|
||||
basic + generics
|
||||
|
||||
member this.Assembly : AssemblyName = this._AssemblyName
|
||||
member this.Definition : ComparableTypeDefinitionHandle = this._Definition
|
||||
member this.Generics : ImmutableArray<'typeGeneric> = this._Generics
|
||||
|
Reference in New Issue
Block a user