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

            return(type);
        }
        private static IceboxedContract GetIceboxedContractForProperties(Type type, IEnumerable <PropertyInfo> properties)
        {
            var contract = new IceboxedContract(
                type.Name,
                properties
                .Select(ConvertPropertyInfoToIceboxedContractMember)
                .ToList());

            return(contract);
        }