/// <summary> /// Obtains a reflection wrapper for a property. /// </summary> /// <param name="target">The property, or null if none.</param> /// <returns>The reflection wrapper, or null if none.</returns> public StaticPropertyWrapper Wrap(IProperty target) { if (target == null) return null; StaticDeclaredTypeWrapper declaringType = MakeDeclaredTypeWithoutSubstitution(target.GetContainingType()); return new StaticPropertyWrapper(this, target, declaringType, declaringType); }