ExampleWinforms/ExampleDLL/bin/Debug/ServiceExample.dll
ExampleWinforms/ExampleDLL/bin/Debug/ServiceExample.pd
b
ExampleWinforms/ExampleDLL/ExampleDLL.csproj
Debug
AnyCPU
{96881B87-D117-44FE-8168-BBB152A7F434}
Library
Properties
ServiceExample
ServiceExample
v3.5
512
SAK
SAK
SAK
SAK
true
full
false
binDebug
DEBUG;TRACE
prompt
4
pdbonly
true
binRelease
TRACE
prompt
4
ExampleWinforms/ExampleDLL/ExampleDLL.csproj.vspscc
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" =
"PROVIDER"
}
ExampleWinforms/ExampleDLL/obj/Debug/DesignTimeResolve
AssemblyReferencesInput.cache
ExampleWinforms/ExampleDLL/obj/Debug/ExampleDLL.csproj
.FileListAbsolute.txt
C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform
sExampleDLLobjDebugExampleDLL.csprojResolveAssembly
Reference.cache
C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform
sExampleDLLbinDebugServiceExample.dll
C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform
sExampleDLLbinDebugServiceExample.pdb
C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform
sExampleDLLobjDebugServiceExample.dll
C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform
sExampleDLLobjDebugServiceExample.pdb
ExampleWinforms/ExampleDLL/obj/Debug/ExampleDLL.csproj
ResolveAssemblyReference.cache
ExampleWinforms/ExampleDLL/obj/Debug/ServiceExample.dll
ExampleWinforms/ExampleDLL/obj/Debug/ServiceExample.pd
b
ExampleWinforms/ExampleDLL/Person.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ExampleDLL
{
public class Person
{
public Person()
{
}
public Person(string name, int age, bool ishappy)
{
_Name = name;
_Age = age;
_IsHappy = ishappy;
}
bool _IsHappy = false;
public bool IsHappy
{
get { return _IsHappy; }
set { _IsHappy = value; }
}
string _Name = string.Empty;
public string Name
{
get { return _Name; }
set { _Name = value; }
}
int _Age = 0;
public int Age
{
get { return _Age; }
set { _Age = value; }
}
}
}
ExampleWinforms/ExampleDLL/Properties/AssemblyInfo.cs
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through
the following
// set of attributes. Change these attribute values to modify the
information
// associated with an assembly.
[assembly: AssemblyTitle("ExampleDLL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("ExampleDLL")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly
not visible
// to COM components. If you need to access a type in this
assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project
is exposed to COM
[assembly: Guid("ad621187-c82e-4fa0-b4eb-06466c2703c6")]
// Version information for an assembly consists of the following
four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build
and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
ExampleWinforms/ExampleDLL/ServiceExample.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ExampleDLL
{
public class ServiceExample
{
private List<Person> _InternalList = null;
private List<Person> InternalList
{
get
{
if (_InternalList == null)
{
_InternalList = new List<Person>();
_InternalList.Add(new Person("Fred", 20, true));
_InternalList.Add(new Person("Jorge", 30, false));
_InternalList.Add(new Person("Edna", 40, true));
_InternalList.Add(new Person("Clair", 50, false));
_InternalList.Add(new Person("Gustav", 60,
true));
_InternalList.Add(new Person("Louis", 21, true));
_InternalList.Add(new Person("Henry", 31,
false));
_InternalList.Add(new Person("Jane", 41, true));
_InternalList.Add(new Person("Flo", 51, false));
_InternalList.Add(new Person("Gary", 61, true));
_InternalList.Add(new Person("Kalvin", 22,
true));
_InternalList.Add(new Person("Luther", 32,
false));
_InternalList.Add(new Person("Fran", 42, true));
_InternalList.Add(new Person("Igor", 52, false));
_InternalList.Add(new Person("Natasha", 62,
true));
_InternalList.Add(new Person("Jerod", 23, true));
_InternalList.Add(new Person("Clementine", 33,
false));
_InternalList.Add(new Person("Corrine", 43,
true));
_InternalList.Add(new Person("Al", 53, false));
_InternalList.Add(new Person("Corey", 63, true));
_InternalList.Add(new Person("Evan", 24, true));
_InternalList.Add(new Person("Will", 34, false));
_InternalList.Add(new Person("Veronica", 44,
true));
_InternalList.Add(new Person("Pearl", 54, false));
_InternalList.Add(new Person("Laura", 64, true));
_InternalList.Add(new Person("Gino", 25, true));
_InternalList.Add(new Person("Gina", 35, false));
_InternalList.Add(new Person("Mary", 45, true));
_InternalList.Add(new Person("Sarah", 55, false));
_InternalList.Add(new Person("Quentin", 65,
true));
}
// //
return _InternalList;
// //
}
}
public bool IsServiceAlive()
{
return true;
}
public List<Person> GetHappyPersons()
{
var q = (from p in InternalList where p.IsHappy select
p).ToList();
return q;
}
public List<Person> GetUnhappyPersons()
{
var q = (from p in InternalList where !p.IsHappy select
p).ToList();
return q;
}
public List<Person> GetAllPersons()
{
// //
return InternalList;
// //
}
}
}
ExampleWinforms/ExampleWinforms.sln
Microsoft Visual Studio
Solution
File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") =
"ExampleWinforms",
"ExampleWinformsExampleWinforms.csproj", "{EE8C56F6-
080F-4351-AE8C-58BD3266F37F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") =
"ExampleDLL", "ExampleDLLExampleDLL.csproj",
"{96881B87-D117-44FE-8168-BBB152A7F434}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = pre

ExampleWinformsExampleDLLbinDebugServiceExample.dllExamp.docx

  • 1.
  • 2.
  • 3.
    "NUMBER_OF_EXCLUDED_FILES" = "0" "ORIGINAL_PROJECT_FILE_PATH"= "" "NUMBER_OF_NESTED_PROJECTS" = "0" "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" } ExampleWinforms/ExampleDLL/obj/Debug/DesignTimeResolve AssemblyReferencesInput.cache ExampleWinforms/ExampleDLL/obj/Debug/ExampleDLL.csproj .FileListAbsolute.txt C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform sExampleDLLobjDebugExampleDLL.csprojResolveAssembly Reference.cache C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform sExampleDLLbinDebugServiceExample.dll C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform sExampleDLLbinDebugServiceExample.pdb C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform sExampleDLLobjDebugServiceExample.dll C:TOPSiQSandboxesKEVINJobCandidatesExampleWinform sExampleDLLobjDebugServiceExample.pdb
  • 4.
  • 5.
    _Name = name; _Age= age; _IsHappy = ishappy; } bool _IsHappy = false; public bool IsHappy { get { return _IsHappy; } set { _IsHappy = value; } } string _Name = string.Empty; public string Name { get { return _Name; } set { _Name = value; } }
  • 6.
    int _Age =0; public int Age { get { return _Age; } set { _Age = value; } } } } ExampleWinforms/ExampleDLL/Properties/AssemblyInfo.cs using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information
  • 7.
    // associated withan assembly. [assembly: AssemblyTitle("ExampleDLL")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("ExampleDLL")] [assembly: AssemblyCopyright("Copyright © Microsoft 2013")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("ad621187-c82e-4fa0-b4eb-06466c2703c6")]
  • 8.
    // Version informationfor an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] ExampleWinforms/ExampleDLL/ServiceExample.cs using System; using System.Collections.Generic;
  • 9.
    using System.Linq; using System.Text; namespaceExampleDLL { public class ServiceExample { private List<Person> _InternalList = null; private List<Person> InternalList { get { if (_InternalList == null) { _InternalList = new List<Person>(); _InternalList.Add(new Person("Fred", 20, true));
  • 10.
    _InternalList.Add(new Person("Jorge", 30,false)); _InternalList.Add(new Person("Edna", 40, true)); _InternalList.Add(new Person("Clair", 50, false)); _InternalList.Add(new Person("Gustav", 60, true)); _InternalList.Add(new Person("Louis", 21, true)); _InternalList.Add(new Person("Henry", 31, false)); _InternalList.Add(new Person("Jane", 41, true)); _InternalList.Add(new Person("Flo", 51, false)); _InternalList.Add(new Person("Gary", 61, true)); _InternalList.Add(new Person("Kalvin", 22, true)); _InternalList.Add(new Person("Luther", 32, false)); _InternalList.Add(new Person("Fran", 42, true)); _InternalList.Add(new Person("Igor", 52, false)); _InternalList.Add(new Person("Natasha", 62, true));
  • 11.
    _InternalList.Add(new Person("Jerod", 23,true)); _InternalList.Add(new Person("Clementine", 33, false)); _InternalList.Add(new Person("Corrine", 43, true)); _InternalList.Add(new Person("Al", 53, false)); _InternalList.Add(new Person("Corey", 63, true)); _InternalList.Add(new Person("Evan", 24, true)); _InternalList.Add(new Person("Will", 34, false)); _InternalList.Add(new Person("Veronica", 44, true)); _InternalList.Add(new Person("Pearl", 54, false)); _InternalList.Add(new Person("Laura", 64, true)); _InternalList.Add(new Person("Gino", 25, true)); _InternalList.Add(new Person("Gina", 35, false)); _InternalList.Add(new Person("Mary", 45, true));
  • 12.
    _InternalList.Add(new Person("Sarah", 55,false)); _InternalList.Add(new Person("Quentin", 65, true)); } // // return _InternalList; // // } } public bool IsServiceAlive() { return true; } public List<Person> GetHappyPersons() { var q = (from p in InternalList where p.IsHappy select
  • 13.
    p).ToList(); return q; } public List<Person>GetUnhappyPersons() { var q = (from p in InternalList where !p.IsHappy select p).ToList(); return q; } public List<Person> GetAllPersons() { // // return InternalList; // // } } }
  • 14.
    ExampleWinforms/ExampleWinforms.sln Microsoft Visual Studio Solution File,Format Version 12.00 # Visual Studio 2012 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExampleWinforms", "ExampleWinformsExampleWinforms.csproj", "{EE8C56F6- 080F-4351-AE8C-58BD3266F37F}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExampleDLL", "ExampleDLLExampleDLL.csproj", "{96881B87-D117-44FE-8168-BBB152A7F434}" EndProject
  • 15.