This file contains hidden or 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; | |
| namespace Game.Shared.Helpers | |
| { | |
| public class GamePool<T> where T : class | |
| { | |
| private readonly Stack<T> _pool; | |
| private readonly Func<T> _creator; |
This file contains hidden or 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 class AlmostFriendClass | |
| { | |
| interface INestedClass | |
| { | |
| void CallMethod(AlmostFriendClass afc); | |
| } | |
| public class NestedClass : INestedClass | |
| { |
This file contains hidden or 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 class ArhiFastHasher | |
| { | |
| private static char[] Buffer = new char[1024]; | |
| public static ulong HashStr(string str) | |
| { | |
| str.CopyTo(0, Buffer, 0, str.Length); | |
| ulong hash = 14695981039346656037UL; //offset | |
| for (var i = 0; i < str.Length; i++) |
NewerOlder