You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/ObjectMapping/IMapper.cs

31 lines
876 B

6 years ago
using System;
using System.Collections.Generic;
namespace ZeroLevel.Services.ObjectMapping
{
public interface IMapper
{
IEnumerable<string> MemberNames { get; }
IMemberInfo this[string name] { get; }
IEnumerable<IMemberInfo> Members { get; }
Type EntityType { get; }
6 years ago
void TraversalMembers(Action<IMemberInfo> callback);
6 years ago
void TraversalMembers(Func<IMemberInfo, bool> callback);
6 years ago
void SetTypeConverter(Func<IMemberInfo, object, object> converter);
6 years ago
bool Exists(string name);
void Set(object instance, string name, object value);
6 years ago
object Get(object instance, string name);
6 years ago
T Get<T>(object instance, string name);
6 years ago
T GetOrDefault<T>(object instance, string name, T defaultValue);
6 years ago
object GetOrDefault(object instance, string name, object defaultValue);
}
}

Powered by TurnKey Linux.