I am fairly new to C# and VB coding. I need to create .Net framework describing chemical reaction as an extension so that I can reuse it in HYSYS. There are tutorials from 2004 which has a tutorial implementation in VB. I was trying to convert the structure from VB to C# but I am confused at With....End With
implementation. Can you describe whats going on here as there is no assignment relations?
Ref Code lines is below and the tutorial pdf link is https://sites.ualberta.ca/CMENG/che312/F06ChE416/HysysDocs/AspenHYSYSCustomizationGuide.pdf (chapter 3).
With hyContainer
.SetReactionPropertyState rpReactants, vsCalculated
.SetReactionPropertyState rpStoichiometricCoefficients, vsCalculated
.SetReactionPropertyState rpMinTemperature, vsCalculated
.SetReactionPropertyState rpMaxTemperature, vsCalculated
.SetReactionPropertyState rpReactionBasis, vsCalculated
.SetReactionPropertyState rpReactionPhase, vsCalculated
.SetReactionPropertyState rpBaseReactant, vsCalculated
.SetReactionPropertyState rpBasisConversion, vsCalculated
.SetReactionPropertyState rpRateConversion, vsCalculated
End With