Utilities: Added copyright notices

This commit is contained in:
TalAloni 2020-11-20 12:26:00 +02:00
parent 67198dd05b
commit ca29e4e759
23 changed files with 143 additions and 10 deletions

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.IO; using System.IO;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.IO; using System.IO;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.IO; using System.IO;
using System.Text; using System.Text;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.IO; using System.IO;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.IO; using System.IO;
using System.Text; using System.Text;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.IO; using System.IO;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.IO; using System.IO;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2005-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2005-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
namespace Utilities namespace Utilities

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View file

@ -1,10 +1,11 @@
/* Author: Damien Guard (damieng@gmail.com)
* http://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net
*/
using System; using System;
using System.Security.Cryptography; using System.Security.Cryptography;
namespace Utilities namespace Utilities
{ {
// Author: Damien Guard (damieng@gmail.com)
// http://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net
public class CRC32 : HashAlgorithm public class CRC32 : HashAlgorithm
{ {
public const UInt32 DefaultPolynomial = 0xedb88320; public const UInt32 DefaultPolynomial = 0xedb88320;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2016-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading; using System.Threading;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2012-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;

View file

@ -1,13 +1,18 @@
/* Copyright (C) 2014-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* Based on:
* http://stackoverflow.com/questions/10966331/two-way-bidirectional-dictionary-in-c
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
namespace Utilities namespace Utilities
{ {
/// <summary>
/// Based on:
/// http://stackoverflow.com/questions/10966331/two-way-bidirectional-dictionary-in-c
/// </summary>
public class Map<T1, T2> public class Map<T1, T2>
{ {
private Dictionary<T1, T2> m_forward = new Dictionary<T1, T2>(); private Dictionary<T1, T2> m_forward = new Dictionary<T1, T2>();

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2017-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2016-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2014-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2014-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2014-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2011-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;

View file

@ -1,3 +1,9 @@
/* Copyright (C) 2016-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Threading; using System.Threading;

View file

@ -1,3 +1,14 @@
/* Copyright (C) 2014-2020 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* Based on:
* http://coding-time.blogspot.pt/2008/03/implement-your-own-parallelfor-in-c.html
* C# 2.0 adaptation based on:
* http://dotnetgalactics.wordpress.com/2009/11/19/how-to-provide-a-parallel-for-loop-in-c2-0-2/
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
@ -9,10 +20,6 @@ namespace Utilities
public delegate void ForDelegate(int i); public delegate void ForDelegate(int i);
public delegate void DelegateProcess(); public delegate void DelegateProcess();
// Based on:
// http://coding-time.blogspot.pt/2008/03/implement-your-own-parallelfor-in-c.html
// C# 2.0 adaptation based on:
// http://dotnetgalactics.wordpress.com/2009/11/19/how-to-provide-a-parallel-for-loop-in-c2-0-2/
public class Parallel public class Parallel
{ {
/// <summary> /// <summary>