mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-29 13:02:05 +03:00
41 lines
933 B
C#
41 lines
933 B
C#
using System;
|
|
using System.Net;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Ink;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Animation;
|
|
using System.Windows.Shapes;
|
|
using MicroIoc;
|
|
|
|
namespace MyFriendsAround.WP7.ViewModel
|
|
{
|
|
public sealed class Container
|
|
{
|
|
Container()
|
|
{
|
|
}
|
|
|
|
public static IMicroIocContainer Instance
|
|
{
|
|
get
|
|
{
|
|
return Nested.instance;
|
|
}
|
|
}
|
|
|
|
class Nested
|
|
{
|
|
// Explicit static constructor to tell C# compiler
|
|
// not to mark type as before field init
|
|
static Nested()
|
|
{
|
|
}
|
|
internal static readonly IMicroIocContainer instance =
|
|
new MicroIocContainer();
|
|
}
|
|
}
|
|
}
|