CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
property_ref.h
1#pragma once
2
3#include <system/iequatable.h>
4#include <system/array.h>
5#include <cstdint>
6
7namespace System
8{
9template <typename> class ReadOnlySpan;
10namespace Text
11{
12namespace Json
13{
14namespace Serialization
15{
16namespace Metadata
17{
18class JsonPropertyInfoBase;
19} // namespace Metadata
20} // namespace Serialization
21} // namespace Json
22} // namespace Text
23} // namespace System
24
25namespace System {
26
27namespace Text {
28
29namespace Json {
30
31namespace Serialization {
32
33namespace Metadata {
34
35class PropertyRef : public IEquatable<PropertyRef>, public System::Details::BoxableObjectBase
36{
37 typedef PropertyRef ThisType;
39
40 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
41 RTTI_INFO_DECL();
42
43public:
44
46
47public:
48
49 uint64_t Key;
52
53 bool Equals(PropertyRef other) override;
55 int32_t GetHashCode() const override;
56 bool Equals(ReadOnlySpan<uint8_t> propertyName, uint64_t key);
57 static uint64_t GetKey(ReadOnlySpan<uint8_t> name);
58
61
62protected:
63
64 #ifdef ASPOSE_GET_SHARED_MEMBERS
65 void GetSharedMembers(System::Object::shared_members_type& result) const override;
66 #endif
67
68private:
69
70 static const int32_t PropertyNameKeyLength = 7;
71
72};
73
74} // namespace Metadata
75} // namespace Serialization
76} // namespace Json
77} // namespace Text
78} // namespace System
Class that represents an array data structure. Objects of this class should only be allocated using S...
Definition: array.h:296
Defines a method that determines the equality of two objects. Objects of this class should only be al...
Definition: iequatable.h:18
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
static uint64_t GetKey(ReadOnlySpan< uint8_t > name)
bool Equals(System::SharedPtr< Object > obj) override
int32_t GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
bool Equals(ReadOnlySpan< uint8_t > propertyName, uint64_t key)
PropertyRef(uint64_t key, System::SharedPtr< JsonPropertyInfoBase > info, System::SharedPtr< Array< uint8_t > > utf8PropertyName)
uint64_t Key
Definition: property_ref.h:49
System::SharedPtr< Array< uint8_t > > Utf8PropertyName
Definition: property_ref.h:51
System::SharedPtr< JsonPropertyInfoBase > Info
Definition: property_ref.h:50
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9