66namespace AsmResolver . DotNet . PortablePdbs
77{
88 [ DebuggerDisplay ( "{Name}" ) ]
9- public class Document : IMetadataMember , IOwnedCollectionElement < PortablePdb >
9+ public partial class Document : IMetadataMember , IOwnedCollectionElement < PortablePdb >
1010 {
11- private readonly LazyVariable < Document , Utf8String ? > _name ;
12- private readonly LazyVariable < Document , Guid > _hashAlgorithm ;
13- private readonly LazyVariable < Document , byte [ ] ? > _hash ;
14- private readonly LazyVariable < Document , Guid > _language ;
15-
1611 public Document ( ) : this ( new MetadataToken ( TableIndex . Document , 0 ) ) { }
1712
1813 public Document ( MetadataToken token )
1914 {
2015 MetadataToken = token ;
21-
22- _name = new LazyVariable < Document , Utf8String ? > ( doc => doc . GetName ( ) ) ;
23- _hashAlgorithm = new LazyVariable < Document , Guid > ( doc => doc . GetHashAlgorithm ( ) ) ;
24- _hash = new LazyVariable < Document , byte [ ] ? > ( doc => doc . GetHash ( ) ) ;
25- _language = new LazyVariable < Document , Guid > ( doc => doc . GetLanguage ( ) ) ;
2616 }
2717
2818 public MetadataToken MetadataToken { get ; }
@@ -33,28 +23,32 @@ public PortablePdb? Owner
3323 set ;
3424 }
3525
36- public Utf8String ? Name
26+ [ LazyProperty ]
27+ public partial Utf8String ? Name
3728 {
38- get => _name . GetValue ( this ) ;
39- set => _name . SetValue ( value ) ;
29+ get ;
30+ set ;
4031 }
4132
42- public Guid HashAlgorithm
33+ [ LazyProperty ]
34+ public partial Guid HashAlgorithm
4335 {
44- get => _hashAlgorithm . GetValue ( this ) ;
45- set => _hashAlgorithm . SetValue ( value ) ;
36+ get ;
37+ set ;
4638 }
4739
48- public byte [ ] ? Hash
40+ [ LazyProperty ]
41+ public partial byte [ ] ? Hash
4942 {
50- get => _hash . GetValue ( this ) ;
51- set => _hash . SetValue ( value ) ;
43+ get ;
44+ set ;
5245 }
5346
54- public Guid Language
47+ [ LazyProperty ]
48+ public partial Guid Language
5549 {
56- get => _language . GetValue ( this ) ;
57- set => _language . SetValue ( value ) ;
50+ get ;
51+ set ;
5852 }
5953
6054 protected virtual Utf8String ? GetName ( ) => null ;
0 commit comments