private IType GetInferredType(IMember entity) { Debug.Assert(EntityType.Method != entity.EntityType); return IsDuckTyped(entity) ? this.TypeSystemServices.DuckType : entity.Type; }