-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathTypeLocalizationInfo.cs
More file actions
33 lines (25 loc) · 921 Bytes
/
TypeLocalizationInfo.cs
File metadata and controls
33 lines (25 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 2003-2010 Xtensive LLC.
// All rights reserved.
// For conditions of distribution and use, see license.
// Created by: Dmitri Maximov
// Created: 2009.12.28
using System.Reflection;
using Xtensive.Orm.Model;
using TypeInfo = Xtensive.Orm.Model.TypeInfo;
namespace Xtensive.Orm.Localization
{
internal class TypeLocalizationInfo
{
public Type LocalizableType { get; private set; }
public Type LocalizationType { get { return LocalizationTypeInfo.UnderlyingType; } }
public TypeInfo LocalizationTypeInfo { get; private set; }
public PropertyInfo LocalizationSetProperty { get; private set; }
// Constructor
public TypeLocalizationInfo(Type localizableType, TypeInfo localizationType)
{
LocalizableType = localizableType;
LocalizationTypeInfo = localizationType;
LocalizationSetProperty = localizableType.GetProperty("Localizations");
}
}
}