Ejemplo n.º 1
0
 private void Register(Type localizableType, TypeInfo localizationType)
 {
     map[localizableType] = new TypeLocalizationInfo(localizableType, localizationType);
 }
Ejemplo n.º 2
0
 public static LambdaExpression BuildExpression(TypeLocalizationInfo localizationInfo, MemberExpression me, string defaultCultureName)
 {
     return((LambdaExpression)BuildExpressionMethodInfo
            .MakeGenericMethod(localizationInfo.LocalizationTypeInfo.UnderlyingType)
            .Invoke(null, new object[] { me.Member.Name, defaultCultureName }));
 }