Ver código fonte

Add compiler pragmas for conditional .NET 4.5 compilation

Ryan J. Melena 11 anos atrás
pai
commit
b7f40f6682
31 arquivos alterados com 126 adições e 31 exclusões
  1. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Configuration/ICustomIdentityConfiguration.cs
  2. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Configuration/IdentityModelCaches.cs
  3. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/BinaryExchange.cs
  4. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/EndpointReference.cs
  5. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Entropy.cs
  6. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Lifetime.cs
  7. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/ProtectedKey.cs
  8. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestSecurityTokenResponse.cs
  9. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestedProofToken.cs
  10. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestedSecurityToken.cs
  11. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Status.cs
  12. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/UseKey.cs
  13. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/WSTrustMessage.cs
  14. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AudienceRestriction.cs
  15. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AuthenticationContext.cs
  16. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AuthenticationInformation.cs
  17. 6 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/EncryptingCredentials.cs
  18. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/IssuerNameRegistry.cs
  19. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/ProofDescriptor.cs
  20. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenDescriptor.cs
  21. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandler.cs
  22. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandlerCollection.cs
  23. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandlerConfiguration.cs
  24. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityToken.cs
  25. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenCache.cs
  26. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenCacheKey.cs
  27. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenHandler.cs
  28. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/TokenReplayCache.cs
  29. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel.Tokens/X509SigningCredentials.cs
  30. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel/CookieTransform.cs
  31. 4 1
      mcs/class/System.IdentityModel/System.IdentityModel/OpenObject.cs

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Configuration/ICustomIdentityConfiguration.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.Xml;
 
 namespace System.IdentityModel.Configuration
@@ -33,4 +35,5 @@ namespace System.IdentityModel.Configuration
 	{
 		void LoadCustomConfiguration(XmlNodeList nodeList);
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Configuration/IdentityModelCaches.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Tokens;
 
 namespace System.IdentityModel.Configuration
@@ -34,4 +36,5 @@ namespace System.IdentityModel.Configuration
 		public SessionSecurityTokenCache SessionSecurityTokenCache { get; set; }
 		public TokenReplayCache TokenReplayCache { get; set; }
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/BinaryExchange.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 
 namespace System.IdentityModel.Protocols.WSTrust
@@ -47,4 +49,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			EncodingType = encodingType;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/EndpointReference.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 using System.Xml;
@@ -58,4 +60,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			throw new NotImplementedException ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Entropy.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Tokens;
 using System.Security.Cryptography;
 
@@ -54,4 +56,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			return b;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Lifetime.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 
 namespace System.IdentityModel.Protocols.WSTrust
@@ -43,4 +45,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			if (expires.HasValue) { Expires = expires.Value.ToUniversalTime (); }
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/ProtectedKey.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Tokens;
 
@@ -49,4 +51,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			return secret;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestSecurityTokenResponse.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Tokens;
 
 namespace System.IdentityModel.Protocols.WSTrust
@@ -49,4 +51,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			RequestType = message.RequestType;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestedProofToken.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Tokens;
 
@@ -51,4 +53,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			ProtectedKey = new ProtectedKey (secret, wrappingCredentials);
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestedSecurityToken.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Tokens;
 using System.Xml;
@@ -44,4 +46,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			SecurityTokenXml = tokenAsXml;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Status.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 
 namespace System.IdentityModel.Protocols.WSTrust
@@ -39,4 +41,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			Reason = reason;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/UseKey.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Tokens;
 
@@ -51,4 +53,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 			Token = token;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/WSTrustMessage.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel;
 
@@ -52,4 +54,5 @@ namespace System.IdentityModel.Protocols.WSTrust
 		public string TokenType { get; set; }
 		public UseKey UseKey { get; set; }
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AudienceRestriction.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.Collections.ObjectModel;
 using System.IdentityModel.Selectors;
 
@@ -45,4 +47,5 @@ namespace System.IdentityModel.Tokens
 			AudienceMode = audienceMode;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AuthenticationContext.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 
@@ -40,4 +42,5 @@ namespace System.IdentityModel.Tokens
 			Authorities = new Collection<string> ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AuthenticationInformation.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 using System.IdentityModel.Tokens;
@@ -41,4 +43,5 @@ namespace System.Security.Claims
 		public Nullable<DateTime> NotOnOrAfter { get; set; }
 		public String Session { get; set; }
 	}
-}
+}
+#endif

+ 6 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/EncryptingCredentials.cs

@@ -25,6 +25,10 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
+using System;
+
 namespace System.IdentityModel.Tokens
 {
 	public class EncryptingCredentials
@@ -42,4 +46,5 @@ namespace System.IdentityModel.Tokens
 			Algorithm = algorithm;
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/IssuerNameRegistry.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Configuration;
 using System.Xml;
 
@@ -49,4 +51,5 @@ namespace System.IdentityModel.Tokens
 			throw new NotImplementedException ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/ProofDescriptor.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Protocols.WSTrust;
 
 namespace System.IdentityModel.Tokens
@@ -35,4 +37,5 @@ namespace System.IdentityModel.Tokens
 
 		public abstract void ApplyTo (RequestSecurityTokenResponse response);
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenDescriptor.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 using System.Text;
@@ -68,4 +70,5 @@ namespace System.IdentityModel.Tokens
 			throw new NotImplementedException ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandler.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 using System.IdentityModel.Configuration;
@@ -117,4 +119,5 @@ namespace System.IdentityModel.Tokens
 			throw new NotImplementedException ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandlerCollection.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
@@ -191,4 +193,5 @@ namespace System.IdentityModel.Tokens
 			throw new NotImplementedException ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandlerConfiguration.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Configuration;
 using System.IdentityModel.Selectors;
@@ -60,4 +62,5 @@ namespace System.IdentityModel.Tokens
 		public TimeSpan TokenReplayCacheExpirationPeriod { get; set; }
 		public StoreLocation TrustedStoreLocation { get; set; }
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityToken.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 using System.Runtime.Serialization;
@@ -103,4 +105,5 @@ namespace System.IdentityModel.Tokens
 			throw new NotImplementedException ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenCache.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 using System.IdentityModel.Configuration;
@@ -45,4 +47,5 @@ namespace System.IdentityModel.Tokens
 		public abstract void RemoveAll (string endpointId);
 		public abstract void RemoveAll (string endpointId, UniqueId contextId);
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenCacheKey.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Xml;
 
@@ -68,4 +70,5 @@ namespace System.IdentityModel.Tokens
 			throw new NotImplementedException ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenHandler.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
@@ -142,4 +144,5 @@ namespace System.IdentityModel.Tokens
 			throw new NotImplementedException ();
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/TokenReplayCache.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Configuration;
 using System.Xml;
@@ -46,4 +48,5 @@ namespace System.IdentityModel.Tokens
 
 		public abstract void Remove (string key);
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/X509SigningCredentials.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Security.Cryptography.X509Certificates;
 
@@ -56,4 +58,5 @@ namespace System.IdentityModel.Tokens
 			return new SecurityKeyIdentifier (new X509SecurityToken (certificate).CreateKeyIdentifierClause<X509RawDataKeyIdentifierClause> ());
 		}
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel/CookieTransform.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 
 namespace System.IdentityModel
@@ -33,4 +35,5 @@ namespace System.IdentityModel
 	{
 		public abstract byte[] Encode (byte[] value);
 	}
-}
+}
+#endif

+ 4 - 1
mcs/class/System.IdentityModel/System.IdentityModel/OpenObject.cs

@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 
@@ -36,4 +38,5 @@ namespace System.IdentityModel
 
 		public Dictionary<string, object> Properties { get { return properties; } }
 	}
-}
+}
+#endif