Dummy_2_1.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. using System.Reflection;
  2. using System.Runtime.Serialization;
  3. namespace System.Runtime.CompilerServices
  4. {
  5. // introduced for silverlight sdk compatibility
  6. internal class FriendAccessAllowedAttribute : Attribute
  7. {
  8. public FriendAccessAllowedAttribute ()
  9. {
  10. }
  11. }
  12. }
  13. namespace System.ServiceModel
  14. {
  15. public class EndpointIdentity {}
  16. public class InstanceContext
  17. {
  18. public InstanceContext (object dummy) {}
  19. }
  20. // introduced for silverlight sdk compatibility
  21. internal class OperationFormatStyleHelper
  22. {
  23. public static bool IsDefined (OperationFormatStyle style)
  24. {
  25. switch (style) {
  26. case OperationFormatStyle.Document:
  27. case OperationFormatStyle.Rpc:
  28. return true;
  29. }
  30. return false;
  31. }
  32. }
  33. }
  34. namespace System.ServiceModel.Channels
  35. {
  36. public interface ITransportTokenAssertionProvider {}
  37. }
  38. namespace System.ServiceModel.Channels.Http
  39. {
  40. }
  41. namespace System.ServiceModel.Channels.Security
  42. {
  43. }
  44. namespace System.ServiceModel.Configuration
  45. {
  46. class Dummy {}
  47. }
  48. namespace System.ServiceModel.Description
  49. {
  50. public interface IPolicyExportExtension {}
  51. public interface IPolicyImportExtension {}
  52. public interface IWsdlExportExtension {}
  53. public interface IWsdlImportExtension {}
  54. public interface IContractBehavior {}
  55. // introduced for silverlight sdk compatibility
  56. internal class ServiceReflector
  57. {
  58. public static T GetSingleAttribute<T> (ICustomAttributeProvider p, Type [] types)
  59. {
  60. T ret = default (T);
  61. foreach (Type t in types) {
  62. foreach (object att in p.GetCustomAttributes (t, false)) {
  63. if (att is T) {
  64. if (ret != null)
  65. throw new InvalidOperationException (String.Format ("More than one {0} attributes are found in the argument types", typeof (T)));
  66. ret = (T) att;
  67. }
  68. }
  69. }
  70. return ret;
  71. }
  72. }
  73. }
  74. namespace System.ServiceModel.DiagnosticUtility
  75. {
  76. // introduced for silverlight sdk compatibility
  77. internal class ExceptionUtility
  78. {
  79. public static Exception ThrowHelperError (Exception error)
  80. {
  81. return error;
  82. }
  83. public static Exception ThrowHelperArgumentNull (string arg)
  84. {
  85. return new ArgumentNullException (arg);
  86. }
  87. }
  88. }
  89. namespace System.ServiceModel.Dispatcher
  90. {
  91. }
  92. namespace System.ServiceModel.Security
  93. {
  94. class Dummy {}
  95. }
  96. namespace System.Net.Security
  97. {
  98. public enum ProtectionLevel {None}
  99. }
  100. namespace System.Xml.Serialization
  101. {
  102. public class XmlTypeMapping {}
  103. }
  104. namespace System.Xml.XPath
  105. {
  106. class Dummy {}
  107. }
  108. namespace Mono.Xml.XPath
  109. {
  110. class Dummy {}
  111. }