Пример #1
0
        public override void Synchronize(SyncronizationContext sc, string remainingText)
        {
            if (Members == null)
            {
                Members = sc.GetMembers(fieldOrPropertyChain, ParentType());

                if (Members != null)
                {
                    fieldOrPropertyChain = Members.ToString(a => a.Name, ".");
                }
            }

            Declare(sc.Variables);
        }
Пример #2
0
        public override void Synchronize(SyncronizationContext sc, string remainingText)
        {
            globalKey = sc.Replacements.SelectInteractive(globalKey, GlobalVariables.Keys, "Globals", sc.StringDistance) ?? globalKey;

            if (remainingFieldsOrProperties.HasText() && Members == null)
            {
                Members = sc.GetMembers(remainingFieldsOrProperties, GlobalVariables[globalKey].Type);

                if (Members != null)
                {
                    remainingFieldsOrProperties = Members.ToString(a => a.Name, ".");
                }
            }

            Declare(sc.Variables);
        }