I do not understand the difference between get_Offset and Offset:
MSDN on NamedRange.get_Offset states
This API supports the Visual Studio infrastructure and is not intended
to be used directly from your code. Use the Offset property instead of
this method.
What does that mean exactly? Similar is also said for get_Value method which is widely used directly in code.
Take following examples which would do the same for me.
myRange.get_Offset(1,0).Value = "Foo";
myRange.Offset[1,0].Value = "Foo";
What are their difference?
is an internal function that generates by the CLR for property
getaccessor.For example if you have a property
after compilation you will find a
get_Nameandset_Namemethods, cause the properties are nothing then simple wrappers over the set-variable/get-variable concept in a single class domain.Being an internal method, it’s not good practise to make use of it, it’s better to use a user defined, clear
propertyaccess.