-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathExternalLibraryUsage.cs
More file actions
34 lines (29 loc) · 1.02 KB
/
ExternalLibraryUsage.cs
File metadata and controls
34 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
public class LibraryUsage
{
public void M1()
{
var l = new List<object>(); // Uninteresting parameterless constructor
var o = new object(); // Uninteresting parameterless constructor
l.Add(o); // Has flow summary
l.Add(o); // Has flow summary
}
public void M2()
{
var d0 = new DateTime(); // Uninteresting parameterless constructor
var next0 = d0.AddYears(30); // Has no flow summary
var d1 = new DateTime(2000, 1, 1); // Interesting constructor
var next1 = next0.AddDays(3); // Has no flow summary
var next2 = next1.AddYears(5); // Has no flow summary
}
public void M3()
{
var guid1 = Guid.Parse("{12345678-1234-1234-1234-123456789012}"); // Has no flow summary
}
public void M4()
{
var d = new Dictionary<string, object>(); // Uninteresting parameterless constructor
var e = d.Keys.GetEnumerator().MoveNext(); // Methods on nested classes
}
}