CSC510233. Avoid having SP-object as field/properties inside classes

Description

SPContext related stuff must not be ever assigned to the class fields.
Having SPWeb/SPSIte ans other IDispodable SP-object as fields/propeties is quite challenging - you need to implement a proper Disposale and that's not cool at all. Leads to lots of issues.

Resolution

Pass "heavy" SharePoint objectsas a methods parameters most of the time.

Links

No links are provided.

Last edited Dec 14, 2013 at 8:35 PM by abolshakov, version 1

Comments

No comments yet.