public override bool Equals(object obj) { if (!(obj is ActivityMetadata)) { return(false); } ActivityMetadata other = (ActivityMetadata)obj; return(other._activity == _activity && other.Environment == this.Environment && other.CreateEmptyBindings == this.CreateEmptyBindings); }
protected sealed override void CacheMetadata(ActivityMetadata metadata) { throw Microsoft.CoreWf.Internals.FxTrace.Exception.AsError(new InvalidOperationException(SR.WrongCacheMetadataForNativeActivity)); }