Skip to content

Commit c003150

Browse files
committed
C#: Add missing file.
1 parent 29df7f5 commit c003150

File tree

1 file changed

+236
-0
lines changed
  • csharp/ql/test/query-tests/Security Features/CWE-079/XSS

1 file changed

+236
-0
lines changed
Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
namespace Microsoft
2+
{
3+
namespace AspNetCore
4+
{
5+
namespace Html
6+
{
7+
// Generated from `Microsoft.AspNetCore.Html.HtmlString` in `Microsoft.AspNetCore.Html.Abstractions, Version=1.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
8+
public class HtmlString : Microsoft.AspNetCore.Html.IHtmlContent
9+
{
10+
public HtmlString(string value) => throw null;
11+
public override string ToString() => throw null;
12+
}
13+
14+
// Generated from `Microsoft.AspNetCore.Html.IHtmlContent` in `Microsoft.AspNetCore.Html.Abstractions, Version=1.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
15+
public interface IHtmlContent
16+
{
17+
}
18+
19+
}
20+
namespace Http
21+
{
22+
// Generated from `Microsoft.AspNetCore.Http.HttpRequest` in `Microsoft.AspNetCore.Http.Abstractions, Version=1.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
23+
abstract public class HttpRequest
24+
{
25+
public abstract Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; }
26+
public abstract Microsoft.AspNetCore.Http.IQueryCollection Query { get; set; }
27+
public abstract Microsoft.AspNetCore.Http.QueryString QueryString { get; set; }
28+
public abstract string ContentType { get; set; }
29+
}
30+
31+
// Generated from `Microsoft.AspNetCore.Http.IHeaderDictionary` in `Microsoft.AspNetCore.Http.Features, Version=1.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
32+
public interface IHeaderDictionary : System.Collections.IEnumerable, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, Microsoft.Extensions.Primitives.StringValues>>, System.Collections.Generic.IDictionary<string, Microsoft.Extensions.Primitives.StringValues>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, Microsoft.Extensions.Primitives.StringValues>>
33+
{
34+
Microsoft.Extensions.Primitives.StringValues this[string key] { get; set; }
35+
}
36+
37+
// Generated from `Microsoft.AspNetCore.Http.IQueryCollection` in `Microsoft.AspNetCore.Http.Features, Version=1.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
38+
public interface IQueryCollection : System.Collections.IEnumerable, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, Microsoft.Extensions.Primitives.StringValues>>
39+
{
40+
Microsoft.Extensions.Primitives.StringValues this[string key] { get; }
41+
bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value);
42+
}
43+
44+
// Generated from `Microsoft.AspNetCore.Http.QueryString` in `Microsoft.AspNetCore.Http.Abstractions, Version=1.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
45+
public struct QueryString : System.IEquatable<Microsoft.AspNetCore.Http.QueryString>
46+
{
47+
public bool Equals(Microsoft.AspNetCore.Http.QueryString other) => throw null;
48+
public override bool Equals(object obj) => throw null;
49+
public override int GetHashCode() => throw null;
50+
public override string ToString() => throw null;
51+
public string Value { get => throw null; }
52+
}
53+
54+
}
55+
namespace Mvc
56+
{
57+
// Generated from `Microsoft.AspNetCore.Mvc.ActionResult` in `Microsoft.AspNetCore.Mvc.Core, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
58+
abstract public class ActionResult : Microsoft.AspNetCore.Mvc.IActionResult
59+
{
60+
}
61+
62+
// Generated from `Microsoft.AspNetCore.Mvc.ControllerBase` in `Microsoft.AspNetCore.Mvc.Core, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
63+
abstract public class ControllerBase
64+
{
65+
public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; }
66+
}
67+
68+
// Generated from `Microsoft.AspNetCore.Mvc.Controller` in `Microsoft.AspNetCore.Mvc.ViewFeatures, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
69+
abstract public class Controller : Microsoft.AspNetCore.Mvc.ControllerBase, System.IDisposable, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter, Microsoft.AspNetCore.Mvc.Filters.IActionFilter
70+
{
71+
public virtual Microsoft.AspNetCore.Mvc.ViewResult View(object model) => throw null;
72+
public void Dispose() => throw null;
73+
}
74+
75+
// Generated from `Microsoft.AspNetCore.Mvc.FromQueryAttribute` in `Microsoft.AspNetCore.Mvc.Core, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
76+
public class FromQueryAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
77+
{
78+
public FromQueryAttribute() => throw null;
79+
}
80+
81+
// Generated from `Microsoft.AspNetCore.Mvc.HttpPostAttribute` in `Microsoft.AspNetCore.Mvc.Core, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
82+
public class HttpPostAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
83+
{
84+
public HttpPostAttribute() => throw null;
85+
public HttpPostAttribute(string template) => throw null;
86+
}
87+
88+
// Generated from `Microsoft.AspNetCore.Mvc.IActionResult` in `Microsoft.AspNetCore.Mvc.Abstractions, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
89+
public interface IActionResult
90+
{
91+
}
92+
93+
// Generated from `Microsoft.AspNetCore.Mvc.ValidateAntiForgeryTokenAttribute` in `Microsoft.AspNetCore.Mvc.ViewFeatures, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
94+
public class ValidateAntiForgeryTokenAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
95+
{
96+
public ValidateAntiForgeryTokenAttribute() => throw null;
97+
}
98+
99+
// Generated from `Microsoft.AspNetCore.Mvc.ViewResult` in `Microsoft.AspNetCore.Mvc.ViewFeatures, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
100+
public class ViewResult : Microsoft.AspNetCore.Mvc.ActionResult
101+
{
102+
public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; }
103+
public ViewResult() => throw null;
104+
}
105+
106+
namespace Filters
107+
{
108+
// Generated from `Microsoft.AspNetCore.Mvc.Filters.IActionFilter` in `Microsoft.AspNetCore.Mvc.Abstractions, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
109+
public interface IActionFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
110+
{
111+
}
112+
113+
// Generated from `Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter` in `Microsoft.AspNetCore.Mvc.Abstractions, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
114+
public interface IAsyncActionFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
115+
{
116+
}
117+
118+
// Generated from `Microsoft.AspNetCore.Mvc.Filters.IFilterFactory` in `Microsoft.AspNetCore.Mvc.Abstractions, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
119+
public interface IFilterFactory : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
120+
{
121+
}
122+
123+
// Generated from `Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata` in `Microsoft.AspNetCore.Mvc.Abstractions, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
124+
public interface IFilterMetadata
125+
{
126+
}
127+
128+
// Generated from `Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter` in `Microsoft.AspNetCore.Mvc.Abstractions, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
129+
public interface IOrderedFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
130+
{
131+
}
132+
133+
}
134+
namespace ModelBinding
135+
{
136+
// Generated from `Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata` in `Microsoft.AspNetCore.Mvc.Abstractions, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
137+
public interface IBindingSourceMetadata
138+
{
139+
}
140+
141+
// Generated from `Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider` in `Microsoft.AspNetCore.Mvc.Abstractions, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
142+
public interface IModelNameProvider
143+
{
144+
}
145+
146+
}
147+
namespace Routing
148+
{
149+
// Generated from `Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute` in `Microsoft.AspNetCore.Mvc.Core, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
150+
abstract public class HttpMethodAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider, Microsoft.AspNetCore.Mvc.Routing.IActionHttpMethodProvider
151+
{
152+
}
153+
154+
// Generated from `Microsoft.AspNetCore.Mvc.Routing.IActionHttpMethodProvider` in `Microsoft.AspNetCore.Mvc.Core, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
155+
public interface IActionHttpMethodProvider
156+
{
157+
}
158+
159+
// Generated from `Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider` in `Microsoft.AspNetCore.Mvc.Core, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
160+
public interface IRouteTemplateProvider
161+
{
162+
}
163+
164+
}
165+
namespace ViewFeatures
166+
{
167+
// Generated from `Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary` in `Microsoft.AspNetCore.Mvc.ViewFeatures, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
168+
public class ViewDataDictionary : System.Collections.IEnumerable, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, object>>, System.Collections.Generic.IDictionary<string, object>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object>>
169+
{
170+
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, object>> System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, object>>.GetEnumerator() => throw null;
171+
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null;
172+
public System.Collections.Generic.ICollection<object> Values { get => throw null; }
173+
public System.Collections.Generic.ICollection<string> Keys { get => throw null; }
174+
public bool Contains(System.Collections.Generic.KeyValuePair<string, object> item) => throw null;
175+
public bool ContainsKey(string key) => throw null;
176+
public bool IsReadOnly { get => throw null; }
177+
public bool Remove(System.Collections.Generic.KeyValuePair<string, object> item) => throw null;
178+
public bool Remove(string key) => throw null;
179+
public bool TryGetValue(string key, out object value) => throw null;
180+
public int Count { get => throw null; }
181+
public object this[string index] { get => throw null; set => throw null; }
182+
public void Add(System.Collections.Generic.KeyValuePair<string, object> item) => throw null;
183+
public void Add(string key, object value) => throw null;
184+
public void Clear() => throw null;
185+
public void CopyTo(System.Collections.Generic.KeyValuePair<string, object>[] array, int arrayIndex) => throw null;
186+
}
187+
188+
}
189+
}
190+
}
191+
namespace Extensions
192+
{
193+
namespace Primitives
194+
{
195+
// Generated from `Microsoft.Extensions.Primitives.StringValues` in `Microsoft.Extensions.Primitives, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
196+
public struct StringValues : System.IEquatable<string[]>, System.IEquatable<string>, System.IEquatable<Microsoft.Extensions.Primitives.StringValues>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyList<string>, System.Collections.Generic.IReadOnlyCollection<string>,
197+
System.Collections.Generic.IList<string>, System.Collections.Generic.IEnumerable<string>, System.Collections.Generic.ICollection<string>
198+
{
199+
System.Collections.Generic.IEnumerator<string> System.Collections.Generic.IEnumerable<string>.GetEnumerator() => throw null;
200+
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null;
201+
bool System.Collections.Generic.ICollection<string>.Contains(string item) => throw null;
202+
bool System.Collections.Generic.ICollection<string>.IsReadOnly { get => throw null; }
203+
bool System.Collections.Generic.ICollection<string>.Remove(string item) => throw null;
204+
int System.Collections.Generic.IList<string>.IndexOf(string item) => throw null;
205+
public bool Equals(Microsoft.Extensions.Primitives.StringValues other) => throw null;
206+
public bool Equals(string other) => throw null;
207+
public bool Equals(string[] other) => throw null;
208+
public int Count { get => throw null; }
209+
public override bool Equals(object obj) => throw null;
210+
public override int GetHashCode() => throw null;
211+
public override string ToString() => throw null;
212+
public static implicit operator string(Microsoft.Extensions.Primitives.StringValues values) => throw null;
213+
public string this[int index] { get => throw null; set => throw null; }
214+
public string[] ToArray() => throw null;
215+
void System.Collections.Generic.ICollection<string>.Add(string item) => throw null;
216+
void System.Collections.Generic.ICollection<string>.Clear() => throw null;
217+
void System.Collections.Generic.ICollection<string>.CopyTo(string[] array, int arrayIndex) => throw null;
218+
void System.Collections.Generic.IList<string>.Insert(int index, string item) => throw null;
219+
void System.Collections.Generic.IList<string>.RemoveAt(int index) => throw null;
220+
}
221+
222+
}
223+
}
224+
}
225+
namespace System
226+
{
227+
namespace Linq
228+
{
229+
// Generated from `System.Linq.Enumerable` in `System.Linq, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`
230+
static public class Enumerable
231+
{
232+
public static TSource First<TSource>(this System.Collections.Generic.IEnumerable<TSource> source) => throw null;
233+
}
234+
235+
}
236+
}

0 commit comments

Comments
 (0)