Skip to content

Commit 7618e68

Browse files
committed
Fixes #151
1 parent bd0d724 commit 7618e68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Injection/Validating.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class Validating
1212
ConstructorInfo selection = null;
1313
var ctor = (InjectionMember<ConstructorInfo, object[]>)member;
1414

15-
if (ctor.IsInitialized) throw new InvalidOperationException("Sharing InjectionConstructor between registrations is not supported");
15+
if (ctor.IsInitialized) throw new InvalidOperationException("Sharing an InjectionConstructor between registrations is not supported");
1616

1717
// Select Constructor
1818
foreach (var info in ctor.DeclaredMembers(type))
@@ -42,7 +42,7 @@ public static class Validating
4242
MethodInfo selection = null;
4343
var method = (InjectionMember<MethodInfo, object[]>)member;
4444

45-
if (method.IsInitialized) throw new InvalidOperationException("Sharing InjectionMethod between registrations is not supported");
45+
if (method.IsInitialized) throw new InvalidOperationException("Sharing an InjectionMethod between registrations is not supported");
4646

4747
// Select Method
4848
foreach (var info in type.GetDeclaredMethods())
@@ -109,7 +109,7 @@ public static class Validating
109109
var field = (InjectionMember<FieldInfo, object>)member;
110110

111111
if (field.IsInitialized) throw new InvalidOperationException(
112-
"Sharing InjectionField between registrations is not supported");
112+
"Sharing an InjectionField between registrations is not supported");
113113

114114
// Select Field
115115
foreach (var info in type.GetDeclaredFields())
@@ -158,7 +158,7 @@ public static class Validating
158158
PropertyInfo selection = null;
159159
var property = (InjectionMember<PropertyInfo, object>)member;
160160

161-
if (property.IsInitialized) throw new InvalidOperationException("Sharing InjectionProperty between registrations is not supported");
161+
if (property.IsInitialized) throw new InvalidOperationException("Sharing an InjectionProperty between registrations is not supported");
162162

163163
// Select Property
164164
foreach (var info in type.GetDeclaredProperties())

0 commit comments

Comments
 (0)