Mono exception to SocketException
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Core.Presentation / System / ServiceModel / Activities / Presentation / MessagingContentPropertyEditorResources.xaml.cs
1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //----------------------------------------------------------------
4
5 namespace System.ServiceModel.Activities.Presentation
6 {
7     using System;
8     using System.Collections.Generic;
9     using System.Linq;
10     using System.Text;
11     using System.Windows;
12     using System.Runtime;
13
14     class MessagingContentPropertyEditorResources
15     {
16         private static ResourceDictionary resources;
17         internal static ResourceDictionary GetResources()
18         {
19             if (resources == null)
20             {
21                 Uri resourceLocator = new Uri(
22                     string.Concat(
23                     typeof(MessagingContentPropertyEditorResources).Assembly.GetName().Name,
24                     @";component/System/ServiceModel/Activities/Presentation/MessagingContentPropertyEditorResources.xaml"),
25                     UriKind.RelativeOrAbsolute);
26                 resources = (ResourceDictionary)Application.LoadComponent(resourceLocator);
27             }
28             Fx.Assert(resources != null, "Could not load argument value editor resources.");
29             return resources;
30         }
31     }
32 }