clojure.lang.CljCompiler.Ast.CljILGen.IsVolatile C# (CSharp) Method

IsVolatile() private static method

private static IsVolatile ( FieldInfo fi ) : bool
fi System.Reflection.FieldInfo
return bool
        private static bool IsVolatile(FieldInfo fi)
        {
            // This would work in Mono
            //foreach (Type t in fi.GetRequiredCustomModifiers() )
            //    if ( t == typeof(IsVolatile) )
            //        return true;

            // Cannot work with signatures on uncreated types
            Type t = fi.DeclaringType;
            TypeBuilder tb = t as TypeBuilder;
            if (tb != null && !tb.IsCreated())
                return false;

            return FieldSigReader.IsVolatile(fi);
        }