Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REORG: Exposed common base classes and functions so other assemblies …
…can access them. Base classes and functions have now been made public, this makes them accessible from other assemblies. Changes have also been made to configurations in the solutions, tidying them up to only use AnyCPU.
- Loading branch information
1 parent
dd91a97
commit d472670
Showing
49 changed files
with
827 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* ********************************************************************* | ||
* This Source Code Form is copyright of 51Degrees Mobile Experts Limited. | ||
* Copyright © 2015 51Degrees Mobile Experts Limited, 5 Charlotte Close, | ||
* Caversham, Reading, Berkshire, United Kingdom RG4 7BY | ||
* | ||
* This Source Code Form is the subject of the following patent | ||
* applications, owned by 51Degrees Mobile Experts Limited of 5 Charlotte | ||
* Close, Caversham, Reading, Berkshire, United Kingdom RG4 7BY: | ||
* European Patent Application No. 13192291.6; and | ||
* United States Patent Application Nos. 14/085,223 and 14/085,301. | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. | ||
* | ||
* If a copy of the MPL was not distributed with this file, You can obtain | ||
* one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* This Source Code Form is “Incompatible With Secondary Licenses”, as | ||
* defined by the Mozilla Public License, v. 2.0. | ||
* ********************************************************************* */ | ||
|
||
using System; | ||
|
||
namespace FiftyOne.Foundation.Mobile.Detection.Entities | ||
{ | ||
public abstract class BaseDataSet : IDisposable | ||
{ | ||
/// <summary> | ||
/// Set when the disposed method is called indicating the data | ||
/// set is no longer valid and can't be used. | ||
/// </summary> | ||
public bool Disposed { get; private set; } | ||
|
||
/// <summary> | ||
/// Constructs a new instance of <see cref="BasaDataSet"/>. | ||
/// </summary> | ||
protected BaseDataSet() | ||
{ | ||
} | ||
|
||
#region Destructor | ||
|
||
/// <summary> | ||
/// Disposes of all the lists that form the dataset. | ||
/// </summary> | ||
~BaseDataSet() | ||
{ | ||
Dispose(false); | ||
} | ||
|
||
/// <summary> | ||
/// Disposes of all the lists that form the dataset. | ||
/// </summary> | ||
public void Dispose() | ||
{ | ||
Dispose(true); | ||
} | ||
|
||
/// <summary> | ||
/// Disposes of the readonly lists used by the dataset. | ||
/// </summary> | ||
/// <param name="disposing"> | ||
/// True if the calling method is Dispose, false for the finaliser. | ||
/// </param> | ||
protected virtual void Dispose(bool disposing) | ||
{ | ||
Disposed = true; | ||
GC.SuppressFinalize(this); | ||
} | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.