Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Grunwald <daniel@danielgrunwald.de>2011-02-22 14:36:04 +0300
committerDaniel Grunwald <daniel@danielgrunwald.de>2011-02-22 14:36:04 +0300
commit99ce95212d71b75caee7f63fc72d0ef0662357f2 (patch)
treebf7c13f25bd7f385c8912426955289e70d9d10e2 /Mono.Cecil/ParameterDefinition.cs
parent1e57f900dab38dde4765fd3c7702e0cd30621911 (diff)
Make Cecil property getters thread-safe.
Diffstat (limited to 'Mono.Cecil/ParameterDefinition.cs')
-rw-r--r--Mono.Cecil/ParameterDefinition.cs4
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; }
}