Showing the changes to Source/Libraries/GSF.ServiceModel (1 of 147 files). Show all
Unified · Split
| @@ -207,7 +207,7 @@ namespace GSF.ServiceModel · 206 unmodified lines | ||
| 207 | 207 | return tcpBinding; |
| 208 | 208 | case "net.p2p": |
| 209 | 209 | // Create binding. |
| 210 | − #pragma warning disable 612, 618 | |
| 210 | +#pragma warning disable 612, 618 | |
| 211 | 211 | NetPeerTcpBinding p2pBinding = new NetPeerTcpBinding(); |
| 212 | 212 | |
| 213 | 213 | #if !MONO |
| @@ -285,7 +285,8 @@ namespace GSF.ServiceModel · 71 unmodified lines | ||
| 285 | 285 | { |
| 286 | 286 | // Find contract interface by service type name. |
| 287 | 287 | Type contract = serviceType.GetInterface("I" + serviceType.Name); |
| 288 | − if (contract == null) | |
| 288 | + | |
| 289 | + if ((object)contract == null) | |
| 289 | 290 | { |
| 290 | 291 | // Fall back to the first interface the service implements. |
| 291 | 292 | Type[] interfaces = serviceType.GetInterfaces(); |