Ejemplo n.º 1
0
 /// <summary>
 /// Attempts to retrieve <see cref="string"/> based value from the configuration.
 /// </summary>
 /// <param name="valueName">Key name for the value to retrieve.</param>
 /// <param name="value">The retrieved value.</param>
 /// <returns><c>true</c> if <paramref name="valueName"/> was found; otherwise, <c>false</c>.</returns>
 public static bool TryGetValue(string valueName, out string value)
 {
     value = Marshal.PtrToStringAnsi(BroApi.bro_conf_get_str(valueName));
     return((object)value != null);
 }