コード例 #1
0
ファイル: ExtendedBy.cs プロジェクト: atata-framework/atata
        internal ExtendedBy(By by)
        {
            by.CheckNotNull(nameof(by));

            ExtendedBy byAsExtended = by as ExtendedBy;

            this.by = byAsExtended?.by ?? by;
            Description = this.by.ToString();

            Options = byAsExtended?.Options?.Clone() ?? SearchOptions.Unsafely();

            if (byAsExtended != null)
            {
                ElementName = byAsExtended.ElementName;
                ElementKind = byAsExtended.ElementKind;
            }
        }