Skip to content

Commit b49b84e

Browse files
Remove this[] logic from the commit.
Stub should not include code logic.
1 parent b2fc68f commit b49b84e

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

csharp/ql/test/resources/stubs/System.Web.cs

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -184,31 +184,7 @@ public class HttpRequest
184184
public string UserAgent(string s) => null;
185185
public string UrlReferrer(string s) => null;
186186
public NameValueCollection ServerVariables => null;
187-
// Default property that goes through the collections
188-
// QueryString, Form, Cookies, ClientCertificate and ServerVariables
189-
public String this[String key]
190-
{
191-
get
192-
{
193-
String s;
194-
195-
s = QueryString[key];
196-
if (s != null)
197-
return s;
198-
199-
s = Form[key];
200-
if (s != null)
201-
return s;
202-
203-
HttpCookie c = Cookies[key];
204-
if (c != null)
205-
return c.Value;
206-
207-
s = ServerVariables[key];
208-
if (s != null)
209-
return s;
210-
}
211-
}
187+
public String this[String key] => null;
212188
}
213189

214190
public class HttpRequestWrapper : System.Web.HttpRequestBase

0 commit comments

Comments
 (0)