Skip to content
← Back

src/semantic/dotnet/property_details.ghul

1
@@IF.dotnet()
2
3
namespace Semantic.DotNet is
4
class PROPERTY_DETAILS(
5
ghul_property: Symbols.Property,
6
dotnet_get_method: System.Reflection.MethodInfo?,
7
dotnet_set_method: System.Reflection.MethodInfo?
8
) is
9
to_string() -> string => (
10
let result mut = "property details "
11
12
result = "{result}property: {ghul_property} {ghul_property.get_hash_code()}"
13
14
if let self.dotnet_get_method? then
15
result = "{result}get: {dotnet_get_method} {dotnet_get_method.get_hash_code()}"
16
fi
17
18
if let self.dotnet_set_method? then
19
result = "{result}set: {dotnet_set_method} {dotnet_set_method.get_hash_code()}"
20
fi
21
22
result
23
)
24
si
25
si