2 writes to DeclaredType
Microsoft.AspNetCore.Mvc.Core (2)
ActionResultOfT.cs (1)
97
DeclaredType
= typeof(TValue),
Infrastructure\ActionResultTypeMapper.cs (1)
41
DeclaredType
= returnType,
12 references to DeclaredType
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ObjectResultExecutor.cs (1)
72
var objectType = result.
DeclaredType
;
Microsoft.AspNetCore.Mvc.Core.Test (11)
ActionResultOfTTest.cs (3)
73
Assert.Equal(typeof(BaseItem), objectResult.
DeclaredType
);
91
Assert.Equal(typeof(ProblemDetails), objectResult.
DeclaredType
);
109
Assert.Equal(typeof(BaseItem), objectResult.
DeclaredType
);
Infrastructure\ActionMethodExecutorTest.cs (6)
115
Assert.Equal(typeof(TestModel), result.
DeclaredType
);
144
Assert.Equal(typeof(TestModel), result.
DeclaredType
);
173
Assert.Equal(typeof(object), result.
DeclaredType
);
330
Assert.Equal(typeof(TestModel), result.
DeclaredType
);
359
Assert.Equal(typeof(object), result.
DeclaredType
);
413
Assert.Equal(typeof(TestModel), result.
DeclaredType
);
Infrastructure\ActionResultTypeMapperTest.cs (1)
72
Assert.Equal(typeof(string), objectResult.
DeclaredType
);
ObjectResultTests.cs (1)
31
Assert.Null(result.
DeclaredType
);