Q
Que
Hi
The I wrote the following Code
If Not txtInvoice.Text = "" Then
txtInvoice.Text =
Convert.ToInt32(txtInvoice.Text()).ToString("000000")
End If
txtInvoice is a TextBox
I use FxCop and it says I should rewrite the code with the following
resolution
"frmInvoiceDetail.txtInvoice_Leave(Object, EventArgs)
:Void makes a call to
System.Convert.ToInt32(System.String)
that does not explicitly provide an IFormatProvider.
This should be replaced with a call to
System.Convert.ToInt32(
System.String,System.IFormatProvider)."
What does it mean that I should Provide an IFormatProvider.
What is IFormatProvider
How does this work
Excuse me for my ignorance
Thanks in Advance
Regards
AQ
The I wrote the following Code
If Not txtInvoice.Text = "" Then
txtInvoice.Text =
Convert.ToInt32(txtInvoice.Text()).ToString("000000")
End If
txtInvoice is a TextBox
I use FxCop and it says I should rewrite the code with the following
resolution
"frmInvoiceDetail.txtInvoice_Leave(Object, EventArgs)
:Void makes a call to
System.Convert.ToInt32(System.String)
that does not explicitly provide an IFormatProvider.
This should be replaced with a call to
System.Convert.ToInt32(
System.String,System.IFormatProvider)."
What does it mean that I should Provide an IFormatProvider.
What is IFormatProvider
How does this work
Excuse me for my ignorance
Thanks in Advance
Regards
AQ