Пример #1
0
        private static Type FindMatchingAssemblyTypeToIceboxedContract(
            IceboxedContract frozenContract,
            IEnumerable <Type> types)
        {
            var type = types.FirstOrDefault(t => t.Name == frozenContract.Name);

            return(type);
        }
Пример #2
0
        private static IceboxedContract GetIceboxedContractForProperties(Type type, IEnumerable <PropertyInfo> properties)
        {
            var contract = new IceboxedContract(
                type.Name,
                properties
                .Select(ConvertPropertyInfoToIceboxedContractMember)
                .ToList());

            return(contract);
        }