Server.Diagnostics.PacketSendProfile.Acquire C# (CSharp) Méthode

Acquire() public static méthode

public static Acquire ( Type type ) : PacketSendProfile
type System.Type
Résultat PacketSendProfile
		public static PacketSendProfile Acquire( Type type ) {
			if ( !Core.Profiling ) {
				return null;
			}

			PacketSendProfile prof;

			if ( !_profiles.TryGetValue( type, out prof ) ) {
				_profiles.Add( type, prof = new PacketSendProfile( type ) );
			}

			return prof;
		}