What is the difference between below way of getting the reference of SPSite object in FeatureActivated() of sharepoint?
1.
public override void FeatureActivated(SPFeatureReceiverProperties
properties)
{
SPSite site = properties.Feature.Parent as SPSite;
//some code
}
**VS**
2.
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
SPSite site = SPContext.Current.Site;
//some code
}