Will using the "as" keyword when using type conversion not through an Invalid cast exception If so how would i make this statement the same but use the as keyword instead of the =
_EndingVendorLegs.EndID = ((Tracking.BusinessObjects. StopOrderLegDetail)tempOrderManifest[this.tempOrderManifest.Count - 1]).StopID;
I want to see if it could be
_EndingVendorLegs.EndID as ((Tracking.BusinessObjects.StopOrderLegDetail)tempOrderManifest[this.tempOrderManifest.Count - 1]).StopID;
but i get "type expected" I am not sure how i need to code the line,,,, any help
Visual C#2
|