コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: CodeActivity.cs プロジェクト: OkunevPY/corewf
        //internal sealed override void OnInternalCreateDynamicUpdateMap(DynamicUpdateMapBuilder.Finalizer finalizer,
        //    DynamicUpdateMapBuilder.IDefinitionMatcher matcher, Activity originalActivity)
        //{
        //}

        //protected sealed override void OnCreateDynamicUpdateMap(UpdateMapMetadata metadata, Activity originalActivity)
        //{
        //    // NO OP
        //}

        protected sealed override void CacheMetadata(ActivityMetadata metadata)
        {
            throw CoreWf.Internals.FxTrace.Exception.AsError(new InvalidOperationException(SR.WrongCacheMetadataForCodeActivity));
        }
コード例 #3
0
 protected sealed override void CacheMetadata(ActivityMetadata metadata)
 {
     throw FxTrace.Exception.AsError(new InvalidOperationException(SR.WrongCacheMetadataForNativeActivity));
 }