diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2011-02-22 14:36:04 +0300 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2011-02-22 14:36:04 +0300 |
commit | 99ce95212d71b75caee7f63fc72d0ef0662357f2 (patch) | |
tree | bf7c13f25bd7f385c8912426955289e70d9d10e2 /Mono.Cecil/ParameterDefinition.cs | |
parent | 1e57f900dab38dde4765fd3c7702e0cd30621911 (diff) |
Make Cecil property getters thread-safe.
Diffstat (limited to 'Mono.Cecil/ParameterDefinition.cs')
-rw-r--r-- | Mono.Cecil/ParameterDefinition.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mono.Cecil/ParameterDefinition.cs b/Mono.Cecil/ParameterDefinition.cs index 059f257..540072f 100644 --- a/Mono.Cecil/ParameterDefinition.cs +++ b/Mono.Cecil/ParameterDefinition.cs @@ -81,7 +81,7 @@ namespace Mono.Cecil { } public Collection<CustomAttribute> CustomAttributes { - get { return custom_attributes ?? (custom_attributes = this.GetCustomAttributes (parameter_type.Module)); } + get { return custom_attributes ?? (this.GetCustomAttributes (ref custom_attributes, parameter_type.Module)); } } public bool HasMarshalInfo { @@ -94,7 +94,7 @@ namespace Mono.Cecil { } public MarshalInfo MarshalInfo { - get { return marshal_info ?? (marshal_info = this.GetMarshalInfo (parameter_type.Module)); } + get { return marshal_info ?? (this.GetMarshalInfo (ref marshal_info, parameter_type.Module)); } set { marshal_info = value; } } |