[return: MarshalAs(UnmanagedType.U1)] private bool IsValid() { if ((this.Restitution < 0f) || (this.Restitution > 1f)) { return false; } return ((this.Hardness >= 0f) && (this.Hardness <= 1f)); }