Ref : The ref keyword is used to pass an argument as reference means that when the value of that parameter is changed in the method its get reflected in the calling method An argument that passe using the ref keyword must be initialized in the calling method before it is passed to the called method
Out : The argument can be passed without assigning any value to it An argument that passed using out keyword mus be initialized in the called methd
No comments :
Post a Comment