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
using System; | |
using System.Collections.Generic; | |
/* Sample | |
class MainClass | |
{ | |
public static void Main(string[] args) | |
{ |
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
#region Property $name$ | |
private $type$ m_$name$= $value$; | |
public $type$ $name$ | |
{ | |
get | |
{ | |
return m_$name$; | |
} |
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
using System; | |
using System.Reflection; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.ComponentModel; | |
namespace EifelMono.Core | |
{ | |
// [Obsolete ("Property is deprecated please use Property instead.")] |
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
using System; | |
using System.Reflection; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.ComponentModel; | |
namespace EifelMono.Core | |
{ | |
// [Obsolete ("Property is deprecated please use Property instead.")] |
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
procedure FindInitializationAndCall; | |
var | |
nameSpace: string; | |
foundName: string; | |
helperType: System.Type; | |
begin | |
for helperType in Assembly.GetExecutingAssembly.GetTypes do | |
begin | |
nameSpace:= helperType.Namespace; | |
if Assigned(nameSpace) then |
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
using System; | |
using System.Reflection; | |
namespace Utils | |
{ | |
[AttributeUsage(AttributeTargets.Method)] | |
public sealed class InitializationAttribute : Attribute | |
{ | |
public InitializationAttribute() | |
{ |
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
Add this | |
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | |
to the frist | |
<PropertyGroup> | |
: | |
: | |
<PropertyGroup> | |
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | |
: |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace EifelMono | |
{ | |
public interface IInstance<T> | |
{ | |
T Instance { get; } |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace EifelMono | |
{ | |
public class Instance<T> | |
{ | |
public Instance() | |
{ |
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
public static void UseKeepAlive(this TcpClient client, ulong time = 2000, ulong interval = 500) | |
{ | |
if (client == null) | |
return; | |
// "consts" to help understand calculations | |
const int bytesperlong = 4; // 32 / 8 | |
const int bitsperbyte = 8; | |
try | |
{ |
OlderNewer