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