Esempio n. 1
0
        public static ExternalUserGroup From(IUserGroup source)
        {
            var group = new ExternalUserGroup();

            source.CopyTo(group);

            return(group);
        }
Esempio n. 2
0
        public static T ConvertTo <T>(this IUserGroup source)
            where T : IUserGroup, new()
        {
            var target = new T();

            source.CopyTo(target);

            return(target);
        }