about_Ref.help

about_Ref.help - TOPIC about_Ref SHORT DESCRIPTION...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 TOPIC about_Ref SHORT DESCRIPTION Describes how to create and use a reference variable type. LONG DESCRIPTION You can use the reference variable type to permit a method to change the value of a variable that is passed to it. When the [ref] type is associated with an object, it returns a reference to that object. If the reference is used with a method, the method can refer to the object that was passed to it. If the object is changed within the method, the change appears as a change in the value of the variable when control returns to the calling method. To use referencing, the parameter must be a reference variable. If it is not, an InvalidArgument exception is thrown. The parameters used in method invocations must match the type required
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

about_Ref.help - TOPIC about_Ref SHORT DESCRIPTION...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online