Merge pull request #3224 from ludovic-henry/iolayer-extract-wait-handle
[mono.git] / mcs / class / corlib / System / WeakReference_T.cs
index 05dd8a1e4830e63af586046df85285a5b17ffa80..da613e97ff3c3b7547f5cc3de377339dddef8758 100644 (file)
@@ -24,7 +24,6 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-#if NET_4_5
 using System.Runtime.Serialization;
 using System.Runtime.InteropServices;
 
@@ -86,7 +85,7 @@ namespace System {
                        }
 
                        target = (T)handle.Target;
-                       return true;
+                       return target != null;
                }
 
                //Methods
@@ -96,4 +95,3 @@ namespace System {
                }
        }
 }
-#endif