上の画像では、Code Contracts からの警告を確認できます。私はこれが正当だとは思いませthis
んnull
。
これはバグですか、それとも何か不足していますか?
このプロパティは、次のクラスのメンバーです。
public class NHibernateIQueryableQueryBase<TEntity, TQuery, TQueryInterface>
: IQuery<TEntity>, IFluentQueryInterface<TEntity, TQueryInterface>
where TQuery : NHibernateIQueryableQueryBase<TEntity, TQuery,
TQueryInterface>,
TQueryInterface
where TQueryInterface : IQuery<TEntity>
更新:
プロパティを次のように変更しても、依然として警告が表示されます - 行にreturn result;
:
public TQueryInterface And
{
get
{
var result = this as TQuery;
return result;
}
}