src/MICore/MIResults.cs
/// <summary>
/// Try to find a uint property. Throws if the property can be found but is not a uint.
/// </summary>
/// <param name="name">[Required] name of the property to search for</param>
/// <returns>The value of the property or null if it cannot be found</returns>
Try to find a uint property. Throws if the property can be found but is not a uint.
Try to find a uint property . Throws if the property can be found but is not a uint .
public uint? TryFindUint(string name)
        {
            ConstValue c;
            if (!TryFind(name, out c))
            {
                return null;
            }
            try
            {
                return c.ToUint;
            }
            catch (OverflowException)
            {
                return null;
            }
            catch (MIResultFormatException)
            {
                throw;
            }
            catch (Exception e)
            {
                throw new MIResultFormatException(name, this, e);
            }
        }
public uint ? TryFindUint ( string name ) { ConstValue c ; if ( ! TryFind ( name , out c ) ) { return null ; } try { return c . ToUint ; } catch ( OverflowException ) { return null ; } catch ( MIResultFormatException ) { throw ; } catch ( Exception e ) { throw new MIResultFormatException ( name , this , e ) ; } }
Try to find a uint property.
Try to find a uint property .
The value of the property or null if it cannot be found
The value of the property or null if it cannot be found
name
string
[Required] name of the property to search for
[ Required ] name of the property to search for