Closed phuclv90 closed 4 years ago
TryGetStorage was declared to receive a cfStorage value, however in fact it should be out so that we can return the storage to the caller
cfStorage
out
public bool TryGetStorage(String storageName, CFStorage cfStorage)
https://github.com/ironfede/openmcdf/blob/03db329bab58feca21ddd4acf56673387b899450/sources/OpenMcdf/CFStorage.cs#L388
The name of the parameter in the comment above the function also slightly differs from the function declaration
/// bool b = cf.RootStorage.TryGetStorage("MyStorage",out CFStorage st);
TryGetStorage was declared to receive a
cfStorage
value, however in fact it should beout
so that we can return the storage to the callerhttps://github.com/ironfede/openmcdf/blob/03db329bab58feca21ddd4acf56673387b899450/sources/OpenMcdf/CFStorage.cs#L388
The name of the parameter in the comment above the function also slightly differs from the function declaration