LocalReference

Namespace: Castle.Core
We found 10 examples in language CSharp for this search. You will see 22 fragments of code.

    internal void HandleReferenceChanged<TMember>( Expression<Func<TMember>> expression, ref TMember localReference, TMember newValue ) where TMember : class
    {
      if( localReference != newValue )
      {
        this.ExecutePropertyChanged( expression, ref localReference, newValue );
      }
    }

    internal void HandleEqualityChanged<TMember>( Expression<Func<TMember>> expression, ref TMember localReference, TMember newValue )
    {
      if( !object.Equals( localReference, newValue ) )
      {
        this.ExecutePropertyChanged( expression, ref localReference, newValue );
      }
    }

    private void ExecutePropertyChanged<TMember>( Expression<Func<TMember>> expression, ref TMember localReference, TMember newValue )
    {
      TMember oldValue = localReference;
      localReference = newValue;
      this.RaisePropertyChanged( expression );
    }


		public override void LoadAddressOfReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}

		public override void LoadReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}


		public override void LoadAddressOfReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}

		public override void LoadReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}


		public override void LoadAddressOfReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}

		public override void LoadReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}


		public override void LoadAddressOfReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}

		public override void LoadReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}


	// Use this for initialization
	void OnStart () {
        GetComponent<LODGroup>().size = lodSize;
        GetComponent<LODGroup>().localReferencePoint = localReference;
    }


		public override void LoadAddressOfReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}

		public override void LoadReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}


		public override void LoadAddressOfReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}

		public override void LoadReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}


		private static ConvertExpression Argument(int i, LocalReference invocationArgs, TypeReference[] arguments)
		{
			return new ConvertExpression(arguments[i].Type, new LoadRefArrayElementExpression(i, invocationArgs));
		}

		private static AssignStatement AssignArgument(TypeReference[] dereferencedArguments, int i,
		                                              LocalReference invocationArgs)
		{
			return new AssignStatement(dereferencedArguments[i], Argument(i, invocationArgs, dereferencedArguments));
		}

		private static AssignStatement GetArguments(LocalReference invocationArgs, LocalReference invocation)
		{
			return new AssignStatement(invocationArgs, new MethodInvocationExpression(invocation, InvocationMethods.GetArguments));
		}

		private static LocalReference StoreInvocationArgumentsInLocal(MethodEmitter emitter, LocalReference invocation)
		{
			var invocationArgs = emitter.CodeBuilder.DeclareLocal(typeof(object[]));
			emitter.CodeBuilder.AddStatement(GetArguments(invocationArgs, invocation));
			return invocationArgs;
		}


		public override void LoadAddressOfReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}

		public override void LoadReference(ILGenerator gen)
		{
			localReference.LoadAddressOfReference(gen);
		}

Castle.DynamicProxy.Generators.Emitters.SimpleAST.LocalReference : TypeReference

Constructors :

public LocalReference(Type type = )

Methods :

public Void Generate(ILGenerator gen = )
public Void LoadAddressOfReference(ILGenerator gen = )
public Void LoadReference(ILGenerator gen = )
public Void StoreReference(ILGenerator gen = )
public Type get_Type()
public Reference get_OwnerReference()
public Void set_OwnerReference(Reference value = )
public Expression ToAddressOfExpression()
public Expression ToExpression()
public Type GetType()
public String ToString()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()