Skip to content

Commit

Permalink
Fixes for non unity build
Browse files Browse the repository at this point in the history
  • Loading branch information
svermeulen committed Jul 11, 2017
1 parent f7cd881 commit 9d14746
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
using System;
#if !NOT_UNITY3D
using JetBrains.Annotations;
#endif

namespace Zenject
{
[AttributeUsage(AttributeTargets.Parameter
| AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
#if !NOT_UNITY3D
[MeansImplicitUse]
#endif
public class InjectOptionalAttribute : InjectAttributeBase
{
public InjectOptionalAttribute()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using JetBrains.Annotations;
using ModestTree;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -168,10 +167,9 @@ private static IEnumerable<FieldInfo> GetAllFields(Type t, BindingFlags flags)
return t.GetFields(flags).Concat(GetAllFields(t.BaseType, flags)).Distinct();
}

[NotNull]
private static Action<object, object> GetOnlyPropertySetter(
[NotNull] Type parentType,
[NotNull] string propertyName)
Type parentType,
string propertyName)
{
Assert.That(parentType != null);
Assert.That(!string.IsNullOrEmpty(propertyName));
Expand Down

0 comments on commit 9d14746

Please sign in to comment.