private static WrapperInfo GetWrappingInfo(ITypeSymbol wrapperType, ITypeSymbol wrappedType) { var unwrappingProperties = ObjectHelper.GetUnwrappingProperties(wrapperType, wrappedType).ToList(); var unwrappingMethods = ObjectHelper.GetUnwrappingMethods(wrapperType, wrappedType).ToList(); if (unwrappingMethods.Count + unwrappingProperties.Count == 1) { if (unwrappingMethods.Count == 1) { return(new WrapperInfo(unwrappingMethods.First())); } return(new WrapperInfo(unwrappingProperties.First())); } return(new WrapperInfo()); }