Azure Page Blobs vs. Liskov Substitution Principle
February 19, 2011
“Liskov Substitution Principle” or LSP is one of the basic “Liskov Substitution Principle” or LSP is one of the basic principles for proper object orientation. LSP definition is:
“Let q(x) be a property provable about objects x of type T. Then q(y) should be true for objects y of type S where S is a subtype of T.”
In plain english that means that if CloudPageBlob inherits from CloudBlob and CloudBlob.UpdateText(someText) works CloudPageBlob.UpdateText(someText) should also work and not throw and exception… (or alternatively CloudPageBlob shouldn’t inherit from CloudBlob)
Hear that Microsoft?
Related Reading
More Insights
INFO-LINK
| To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. | |

